OTRS 5 TicketUpdate via WebServices JSON : Error while decoding request content..

Moderator: crythias

Locked
LXsysadmin
Znuny newbie
Posts: 21
Joined: 28 Jun 2018, 12:23
Znuny Version: 5.0.22
Real Name: Martins

OTRS 5 TicketUpdate via WebServices JSON : Error while decoding request content..

Post by LXsysadmin »

We are trying to update multiple tickets via OTRS 5 web services using JSON. All is working fine except for one ticket. JSON looks the same as for other tickets.
We get error like:

Message: Decoding the JSON string failed:
RemoteAddress:
RequestURI: /nph-genericinterface.pl/Webservice/Robot/TicketUpdate/106589?SessionID=H3uAMCCcPNIj1Dem7o30PeIk4zBxnK3K
Traceback (32704):
Module: Kernel::System::JSON::Decode Line: 139
Module: Kernel::GenericInterface::Transport::HTTP::REST::ProviderProcessRequest Line: 290
Module: Kernel::GenericInterface::Transport::ProviderProcessRequest Line: 108
Module: Kernel::GenericInterface::Provider::Run Line: 180
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_nph_2dgenericinterface_2epl::handler Line: 38
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31

ERROR: GenericInterfaceProvider-10 Perl: 5.10.1 OS: linux Time: Mon Mar 25 14:32:26 2019
Message: DebugLog error: Summary: Error while decoding request content. Data : No data provided.
Message: DebugLog error: Summary: Request could not be processed Data : Error while decoding request content..
Message: DebugLog error: Summary: Returning provider data to remote system (HTTP Code: 500) Data : Error while decoding request content..


Can we somehow get more information about what is wrong? JSON validators say, that JSON is correct. How to get output what and where something goes wrong? Is there some value incorrect or symbol or...?
root
Administrator
Posts: 4250
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 5 TicketUpdate via WebServices JSON : Error while decoding request content..

Post by root »

Hi,

Show your JSON and HTTP method.
Any details in the web service log (switch to debug first)

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Locked