Recently I updated plumber, jsonlite and httr libraries to their latest version. After this, I have been getting the following error response every time I use the API:
Not sure where the issue comes from. My data has not changed and there are no special characters. The application and the R code are running locally under the same network.
This is my hypothesis,
Previously plumber ignored incoming request content-type headers so your request would be handled like a query, setting the incomingJSON parameter to a string with value
Now plumber has parsers (https://www.rplumber.io/reference/parsers.html) that respects the incoming request content-type header. If you send a query with content-type "application/json" plumber will parse the whole body of your request has a json formatted string.
before sourcing your API or creating your route object. You will effectively be replacing the json paser by the regular query string parser, which would be similar to the old behavior.