Hi, I’m currently attempting to deploy the signature sample in Azure Functions; for context the code ran well before when I uploaded it to Render, I had a CORS layer of issues but it worked, now I can’t even recieve the signature token
it started displaying this error
SyntaxError: Unexpected token ‘<’, "<!DOCTYPE "… is not valid JSON
As I know, the error message you’re seeing suggests that the response you’re getting from the server isn’t valid JSON. This could be caused by a variety of issues, including a CORS issue, as you mentioned. One thing you might try is double-checking that the server is actually sending a JSON response. It’s possible that the server is sending an HTML response instead, which would explain the error message you’re seeing. Another thing to consider is whether there are any differences in the environment between Render and Azure Functions. For example, if you’re using different versions of Node.js or any dependencies, this could potentially cause issues. Let me know if that helped you.