Ticket is getting updated despite an error

English! place to talk about development, programming and coding
Post Reply
Niroc
Znuny newbie
Posts: 18
Joined: 18 Jun 2015, 10:57
Znuny Version: 5.0.12

Ticket is getting updated despite an error

Post by Niroc »

Hi,

I've got an ubuntu virtual machine, which runs otrs on.
My aim is it get familiar with the web-services and I found the Webinar video https://www.youtube.com/watch?v=EfIx_VQ1k8M.
So I installed the webservices which I've got from the github page and downloaded the SOAPRequest.pl and changed the attributes correspondingly. But the only response I get is : Server Ticket could not be created, please contact the system administrator
Does anybody can help me out here? I dont know what I'm doing wrong.

Here are also my XML Data:

Code: Select all

<UserLogin>lustig</UserLogin>
<Password>pes13</Password>
<Ticket>
    <Title>some title</Title>
    <CustomerUser>ricked</CustomerUser>
    <Queue>RAW</Queue>
    <State>open</State>
    <Priority>3 normal</Priority>
</Ticket>
<Article>
    <Subject>some subject</Subject>
    <Body>some body</Body>
    <ContentType>text/plain; charset=utf8</ContentType>
</Article>
Last edited by Niroc on 09 May 2016, 09:13, edited 1 time in total.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Accessing otrs-webservices via perlscript

Post by RStraub »

Try to tail the apache and otrs log while using your script and post the results here.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Niroc
Znuny newbie
Posts: 18
Joined: 18 Jun 2015, 10:57
Znuny Version: 5.0.12

Re: Accessing otrs-webservices via perlscript

Post by Niroc »

Now, I didn't find any files which seems to be relevant in the otrs-logs. There is only one TicketCounter.Log with one entry: 1;2016-05-04;

It's also doesn't change, when I'm trying to execute the script.
Talking about the apache-logs, I add a screenshot from the virtual machine from the error.log. It's the last entry and it comes right after executing the script.

If there is still something I can do to give more information, pls tell me.


edit: there is also a screenshot from the access.log
edit2: GetTicket-function is working.
edit3: TicketUpdate seems also to work. It updates the Ticket-Title for example but I'm getting still the error output on the console. Very confusing.
You do not have the required permissions to view the files attached to this post.
Post Reply