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 Script not working.

February 05 (7 years ago)

Edited February 05 (7 years ago)
I apologize for posting something I know for a fact has been posted before, but all previous posts didn't add much aside from a few tricks that didn't work.
So my API script isn't working, and all I know is that no one else seems to be having this problem.
Every time I look at the API it freezes at.
"Restarting sandbox due to script changes..."

Then every time I press restart API it repeats.
"Previous shutdown complete, starting up..."
"Restarting sandbox due to script changes..."
Yet never actually restarts the API.

In fact even other games, where the API turns off due to inactivity. Doesn't count me as active when I join but other GMs don't have this problem.

If you need me to post anything, please tell me how as well.
Thank you.
edit:
The script I'm trying to get to run is aura/tint healthcolours by the way. I felt I should mention that.
edit2:
Friend of mine told me to clarify some things so I'll do that.
Doesn't work when I create or join my own game, and doesn't restart the API.
It does however work when I make another person gm and they join.
It doesn't count me as an active player even when I'm in my own game.
It does however count other players.
I've tried waiting for two hours on a restart and it didn't work, it however worked in two seconds when a friend restarted it.
Is that the ONLY script you have running?
February 05 (7 years ago)

Edited February 05 (7 years ago)

OldSchoolChris said:

Is that the ONLY script you have running?

Yeah
edit:
I also experimented and allowed my friend to log onto my account and it worked for him, but still not me.
I tried deleting my cookies, all of them, and nothing.

Also I tried using other scripts and those didn't work either.

So it's probably an issue on my end, either my computer or internet connection -- though I don't know why those would be the answer I just remember reading a post stating a similar problem where a user was unable to use the API on one computer but could on another.
edit2:
I also experimented by getting a fresh browser, google chrome, and it still didn't work.
February 05 (7 years ago)
So I've also tried flushing my dns, and restarting my computer.
Neither worked. I don't know what to do to be honest, and I'm starting to think it's a lost cause.
Again no other scripts work either, and so it's not a isolated thing.
Do you have any ad-blockers enabled or antivirus running? I am not a tech person, but sometimes they mess with Roll20.
February 05 (7 years ago)

Edited February 05 (7 years ago)

OldSchoolChris said:

Do you have any ad-blockers enabled or antivirus running? I am not a tech person, but sometimes they mess with Roll20.

I actually just disabled them both, and sadly still doesn't work. Thank you though.
February 05 (7 years ago)
Alright I've given up, but I found one solution. Even though I don't count as active, others do. So albeit not the ideal solution, it works well enough.
A common issue for the console message you mentioned:

Previous shutdown complete, starting up...
Restarting sandbox due to script changes...

This happens when no one is logged on to the game. Make sure you are have the game open in another browser tab while working with the API console.

February 05 (7 years ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Something to keep in mind, if your script doesn't log anything on startup, there won't be anything after the the log entry you posted.
February 05 (7 years ago)

Edited February 05 (7 years ago)

Florian B. said:

A common issue for the console message you mentioned:

Previous shutdown complete, starting up...
Restarting sandbox due to script changes...

This happens when no one is logged on to the game. Make sure you are have the game open in another browser tab while working with the API console.


Yeah that's the issue I mentioned, even when I'm literally in the game with another tab open to see the API, it doesn't count me as logged in. No one else has this problem in my games. In fact that was the solution: Have one of my players join the game to count the game as active. It sucks, because I can't test out api scripts freely, and I don't count as active but whatever.
I may have missed it above, but have you logged out, then logged back in from your machine?