jaimeadf / discord-screenshot

A resource for FiveM that captures the screen of a player and uploads it to a discord webhook.
MIT License
69 stars 24 forks source link

An error occurred: Timeout #20

Open laggis opened 3 years ago

laggis commented 3 years ago

Hey so my discord-screenshot just stop working randomly i have no clue why, im getting "An error occurred: Timeout" in the discord

Untitled

jaimeadf commented 3 years ago

This happens when the screenshot upload takes more than 1 minute, which usually means that the player has slow internet or your server is having bandwidth problems. If you restart your server does it work normally?

laggis commented 3 years ago

If you mean normally like if you can connect throw and stuff like that yes that works everything works fine, just that im getting that timeout thing and my internet its not that bad so maybe a port blocking it?

Update it works perfect before but for some odd reason it just stop working, do i have to have a order in the server.cfg with the "discord-screenshot" "screenshot-basic"

jaimeadf commented 3 years ago

I was referring to the script itself, but if the problem was a blocked port, it wouldn't even work. Does that happen to all your connected players or only yourself?

laggis commented 3 years ago

Yes, and i have no error comming from the scrip

jaimeadf commented 3 years ago

All players or just you?

laggis commented 3 years ago

All

jaimeadf commented 3 years ago

What host provider are you using? Have you taken any screenshots before the error, if so, how many?

Sorry for making so many questions.

laggis commented 3 years ago

Im using zaphosting,

Yes i was enable to take a screenshots before, like 10+

You can ask how many you want bc i have tried everything i can understand why

laggis commented 3 years ago

When i join the server and took a screenshot this come up im not sure if it means anything

image image

laggis commented 3 years ago

Gettings this problem now

Untitled

jaimeadf commented 3 years ago

Both warnings are from screenshot-basic and I can't do anything about them. If you want to see more details about the last one take a look at the issue #18.

jaimeadf commented 3 years ago

Could you try restarting both resources (screenshot-basic first and then discord-screenshot) and test if they work?

laggis commented 3 years ago

Im just getting this now

116800982-1ecf7d00-ab06-11eb-892d-b4b12345da06 116800993-33137a00-ab06-11eb-9ca8-81540d6aef75

jaimeadf commented 3 years ago

Both warnings are from screenshot-basic and I can't do anything about them. If you want to see more details about the last one take a look at the issue #18.

^^

jaimeadf commented 3 years ago

Are you using the screenshot-basic that cames with discord-screenshot?

laggis commented 3 years ago

Yes, but then im just getting the "(node:2052) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead."

I have check the links you gave me going to read more about when i have time