Hi all,
Not entirely sure, but our logs are showing issues sometimes from datadog. Think we’ve finally pinpointed the issue.
After a bit of digging. We’ve realised that it could be related to this part of the code
The parse json response needs a message, but it appears the message can be empty. What if response is just a header
with a status code. That means json parse will break with unexpected JSON format. Which it does.
Below are images with the error logs and code snippet from loader package (nextjs)
ref: @plasmicapp/loader-fetcher/dist/loader-fetcher.cjs.development.js