2
HTTP request module INVALID PAYLOAD
complete
Q
Qarib Haider
The json type http requests body is parsed before the request is sent, which adds unnecessary quotes(") at start and end of the body.
Due to this the requests fails on the server, returning an invalid payload error.
I have added screenshot of the raw content sent directly via ARC vs app in Appgyver.


Log In
K
Kirill Leventcov
complete
T
Timo Kapanen
under review
Q
Qarib Haider
Timo Kapanen: Any updates on this please?
K
Kirill Leventcov
Qarib Haider:
Hi,
Thanks again for reporting, and sorry for a long delay. The backslashes are intentional, as exchanging data between web servers needs to be done via a string. Excluding backslashes would lead to an invalid string (See attachment).
You can quite easily 'decode' a string back to JSON: https://stackoverflow.com/questions/21036626/remove-backslashes-from-json-data-in-javascript

k
kleber zeitounian
Kirill Leventcov: boa noite, alguma novidade sobre esta demanda, além de coloca as aspas duplas, ele tb envia o número 1 antes do pacotes de dados json.
T
Timo Kapanen
Hi Qarib Haider, and thanks for your report. We will study the issue. Best Regards, Timo Kapanen