We are encountering an issue with our Forge app in the production environment. The following error is being logged:
{ "message":"Unexpected token u in JSON at position 0", "name":"FUNCTION_ERR", "stack":"SyntaxError: Unexpected token u in JSON at position 0\n at JSON.parse ()\n at run (index.js:31205:28)",
}
Hello @Nagaraja (MicroGenesis TechSoft)
This question is more suitable for developer community: https://community.developer.atlassian.com/
P.S What I've found: "The error "Unexpected token u in json at position 0" suggests you're trying to parse undefined as JSON in your test or script. "
Hello Nikola,
However, I am not passing any JSON data at this stage. I have created an event listener that triggers the main logic only when a Jira ticket is created, updated, or commented on. The issue is specific to one site where this error occurs, and as a result, the main logic is not triggered, meaning no action is taken on the Jira ticket. The error happens before anything else is processed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Understood, please refer to the developer community. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.