Shiny app using data service - Works locally, not on deploy - byte order mark the issue?

...Hi,

My app works locally but is causing a crash when deployed. The error occurs when using the command jsonlite::fromJSON(content(schmap, as='text')).

I am fetching data from a data service, which requires a token. The token works fine and the data seems to be fetched from the service fine, because using print() shows the status as 200. I do get a warning, however, that I don't get on my local machine: Warning: JSON string contains (illegal) UTF8 byte-order-mark!.

The error that occurs during the jsonlite::fromJSON() call is Error : lexical error: invalid char in json text.

It seems like the byte-order-mark could be the issue. Any advice on how to remove it or if it seems like the problem lies elsewhere?