Hi there, I’m having a problem handling push notifications as an array, in result we send individual notifications (using a for sentence basically) we got multiple errors (see below) in both ways.
HttpMessageNotReadableException: JSON parse error: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens; nested exception is com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens
On the other hand using this way to handle notifications is not efficient and every time we try to send more than 10 (individual) fails.
Also if the application is closed the notification doesn’t show.
What does “data” contain?
What is HttpEntity?
What does the HTTP request actually look like (e.g. if you capture it with a packet sniffer or log it using a proxy server)?
The error message implies that the request is not valid JSON.
Hi, “data” contains a Map (HasMap) mainly.
We already solved our issue, effectively the error is when the response is parsed, We were sending the Http header “Accpet: gzip”, but we did not expect the compressed response.