Hello.
Sometimes, when I use my bot, it replies twice. Usually, I just change the bot token after that, but that’s not a real solution.
In the first place, I wanna know why is this happening. It’s really annoying + I don’t know what is even causing it.
the project with that bot is the only one with its token and somehow, there are two “scripts” running at once.
Is there a way to fix that?
There’s too much code.
My token wasn’t leaked and the bot isn’t on github …
(I’ve changed the token multiple times and it still happens sometimes) …
Edit: if the token was leaked, the same commands couln’t be used (like, there are 2 same scripts runnin g apparently)
Thing is that glitch is screwed at this moment. Having to restart about every hour installing all the packages in the hope it won’t stop next hour doesn’t make nyone happy. The uptime is less then 5% atm
Hating and frustrating are different things. I completely understand their trying to resolve the issue. Which I totally respect. Though you gotto understand having a bot supporting the mass globally asks for uptime. That frustrates when the system gets daily new problems.
From slow loading projects to reinstalling dependacies to blocking ping etc etc. Seems like I have to spend daily more time to make sure the uptime is enough to support the users
I had a similar problem the other day. At first, the bot made two identical answers. Yesterday I was informed that the bot makes four identical answers. I changed the bot token and the problem was solved
Sorry, I can’t send the project cause it contains stuff like API keys, etc
But it’s one project, just “2 bots” running at once. This was happening multiple times. I always regenerated the token, and it still happens sometimes …
As long as your bot token is in the env As long as any of your important information is in the .env file, those who can’t edit on the project itself, will not be able to see the .env file.
I’d assume the problem lies with this “2 bots running at once” but I don’t actually understand what you mean by that…
Hmmm… Are you sure? It would make sense if the code was running on two computers, projects, etc. as regenerating the token would make the old code not work. Maybe you have it on some other hosting as well and don’t realise? Do you have it automatically update to a different hosting provider?
No, the same code is not running on a different computer. It is a problem with glitch. It’s probably related to the issues they’ve had lately.
The times I’ve had that issue is after the project has reloaded because of some code change, or a refresh, but I guess it actually started a new one and didn’t stop the old one.
It’s not the problem with glitch. The problem is that the same script is running on a different computer/project, or something is going faulty in his code, or discord is having a issue.
Thats python.
Also, as I said, my code isn’t running anywhere else, nor computer nor another project.
Another thing is, even some loops run twice sometimes which causes them to error.
I’m experiencing the same phenomenon.
If you update the code you’re currently editing, one is being processed as you modified it But The other one is handled with the old code, and the There’s no way to edit, delete or stop the old code.
have you been seeing anything in your project’s logs about the app taking too long to shut down?
I’m asking because I’ve been experiencing huge disk latencies on Glitch, and if your app gets stuck waiting for a disk access, it (i.e., libuv worker thread, I think) goes into uninterruptible sleep, such that Glitch wouldn’t be able to force-terminate it. I wonder if that leaves the rest of the process running, as Glitch spins up a new process after you change a file or something.