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

Roll20AM crashes on !roll20AM --config,import

The import command (either typed or from the config menu) causes the APi sandbox to crash Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again. More info... If this script was installed from the Script Library, you might find help in the Community API Forum. For reference, the error message generated was: SyntaxError: Unexpected end of JSON input SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at importJukebox (apiscript.js:3474:33) at configHandler (apiscript.js:2720:13) at Timeout._onTimeout (apiscript.js:2471:17) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7) Just on case one my sound files were cousing problems, I deleted all my tracks from Jukebox, used Remove all, and then tried import a fresh (and empty) list. Still same error. I had this problem back in December, and even deleting the script and reinstalling it anew failed. Reverting to 1.04 version failed as well. Victor B. said: -   Since the script was was last updated a year ago, and worked fine (including import) just a few months ago, maybe the problem is on Roll20 side? Did the devs change anything about the Jukebox?
1641161760
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just a note: if you are using One Click's function to load previous versions, please be aware this doesn't work. You will need to go to the Github repository and manually install a previous version. FWIW, I do not get the issue over here. I'm not sure if trying to import an empty list would generate an error. Maybe put one track into your Jukebox, making sure there are no odd characters that might cause issues, like quotes or symbols.
After some more fidling... turns out the crash is caused by there not being any playlists in Jukebox, just individual music files. Adding a Playlist (even an empty one) immidiately fixed it.
1641520123

Edited 1641527167
I had the same issue (and posted a topic without checking the forum first!)  Your empty playlist hack worked for me as well.