JSON
Paul Timms
4-24-17
I am sending an area containing JSON using SendWebRequest. The reply from the other system sometimes contains JSON, or if there is an error it may only contain a string of text. When using ParseJSONArea, I can see in hansa.log this message:


json problem: json not starting with '{' or '['

Is there a way in HAL to detect the same? Or is it a matter of checking that the first character in the area is a { or a [ ?

Also in hansa.log is an HTTP response such as the following:

GetOneHttpMessageFromSock: HTTP/1.1 404 Not Found


Is there a way in HAL to read this HTTP response? If so it would make for better error detection.

Thanks

Paul
Jarek Jamroszczak
5-12-17
Hello

SendWebRequest does not give possibility to deal with HTTP response
SendAsyncWebRequest does give.

in 8.4 there is new hal promitive SendWebRequest3 which gives HTTP response

Regards


Jarek
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
David Delač
Hi Piotr, The log entry:
2024-12-14 08:40:43 0.000 CallHal(IsHansaWorldCustomer) appears because the server is running with the verbosity=debug-detailed setting in its parameters.txt file. Thi...
09:43 16 Dec 2024
Brittany McGrath
Hi Vaughn, I can confirm this has been fixed now and is live in Standard ERP 2024-11-20 Version: 85556786. Thank you. ...
10:04 10 Dec 2024