[Gambas-bugtracker] Bug #2477: Memory-Access-Error on HttpClient
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Wed Feb 9 00:40:32 CET 2022
http://gambaswiki.org/bugtracker/edit?object=BUG.2477&from=L21haW4-
André ROTHE reported a new bug.
Summary
-------
Memory-Access-Error on HttpClient
Type : Bug
Priority : Medium
Gambas version : Master
Product : Networking components
Description
-----------
I try to use HttpClient with a POST request, which results in a memory access error and a complete crash of the Gambas interpreter. The GET method works, but the POST method crashes the program. I use an asynchronous access. The following curl request is the same as within the Gambas program:
curl -X POST -H "Accept: application/vnd.de.phosco.bookmonkey.Book.v1+json, application/vnd.de.phosco.Error.v1+json" -H "Content-Type: application/vnd.de.phosco.bookmonkey.Book.v1+json" -d '{"id":"","mainTitle":"test","isbn":"12345678","rating":4.3,"description":"test\t","published":"2022-02-09"}' https://example.com/book-list
The response contains an application/vnd.de.phosco.Error.v1+json (Http-500) with a Json-formatted error description. But only curl returns the correct response, HttpClient crashes.
System information
------------------
OpenSuse 15.3
Gambas 3.16.90 cloned from https://gitlab.com/gambas/gambas/-/tree/f02eae69f9722987de1e29e2b9fb4a4b71db0370
More information about the Bugtracker
mailing list