Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

API error: SyntaxError: Unexpected token }

please help me fix this it was working fine last night and now it isnt. what gives? anyone else experiencing this?
1570733796

Edited 1570733814
Nicholas
Roll20 Team
Heya Nick -  Thanks for submitting the report! Overall, this sounds like just a minor syntax error in the code you are using. However, to best assist you, would you mind adding and clarifying some additional information on the issue, please?  What scripts are you using and how did you install them? Specifically, are you using scripts that you have created, or are you using scripts that were installed via our Roll20 script library or GitHub? If you are using installed scripts, did you modify or change any of the code? Was there any additional error information you received from the API console?
Nicholas said: Heya Nick -&nbsp; Thanks for submitting the report! Overall, this sounds like just a minor syntax error in the code you are using. However, to best assist you, would you mind adding and clarifying some additional information on the issue, please?&nbsp; What scripts are you using and how did you install them? Specifically, are you using scripts that you have created, or are you using scripts that were installed via our Roll20 script library or GitHub? If you are using installed scripts, did you modify or change any of the code? Was there any additional error information you received from the API console? just after i posted it i fixed it by disabling a new script i installed. but now you are here maybe you can implement a change with the way modules behave with token bars. modules dont conform to token bars set within the game settings. by that i mean that they are formatted differently to how you set the game settings and its really difficult to set npcs to the passive perception. without the code that aaron has made and i installed. (which was the cause of the problem but it did its job, which was to format tokens to have the setup i like).&nbsp; you can find the coding here.&nbsp; <a href="https://app.roll20.net/forum/post/7822935/how-do-i-set-npc-slash-monsters-passive-perception-and-hp-globally-5e-ogl#post-7826359" rel="nofollow">https://app.roll20.net/forum/post/7822935/how-do-i-set-npc-slash-monsters-passive-perception-and-hp-globally-5e-ogl#post-7826359</a>