Next.js Discord

Discord Forum

Timeout Error

Unanswered
Alligator mississippiensis posted this in #help-forum
Open in Discord
Alligator mississippiensisOP
I deployed a project which took 3 retries until Id is invalid if its invalid then it will info from a json, but why did vercel give me time out
which isnt possible and its working in local port host
Also I tested on cyclic and its working fine but i prefer vercel

34 Replies

@@ts-ignore vercel's execution duration timeout is 10sec
Alligator mississippiensisOP
:/
either upgrade to pro, or make it not last 10 sec
All that just for it to be a one liner
Honestly 10 sec is too long
yeah
@Clown Honestly 10 sec is too long
yeah, it would be pain for the user to be wating longer than that...
@riský yeah, it would be pain for the user to be wating longer than that...
Alligator mississippiensisOP
its not for user actually its a game type like my bot will keeps spawning a anime character after 10 min
@riský either upgrade to pro, or make it not last 10 sec
Alligator mississippiensisOP
looks like i need to find alternative for html converter
then you should use another service for running longer threading tasks
Alligator mississippiensisOP
cuz i am student only and 20$ is kinda too much in my country
@riský then you should use another service for running longer threading tasks
Alligator mississippiensisOP
hmm but i will try to reduce the time
how often does this occure? and is it on a cron script?
So wait. What you are trying to do, is find a random ID from a json file then get its keys and somehow convert the data to html?
@Clown So wait. What you are trying to do, is find a random ID from a json file then get its keys and somehow convert the data to html?
Alligator mississippiensisOP
yes and from that html i scrape the things that i wanted
sorry for bad english 💀
You'll just have to index the data then
And periodically update it
Keep the scraped version and find a way to divide the things into smaller parts
Because i dont think its even a problem with the scraper at that point.
Alligator mississippiensisOP
actually it is cause rn that link is also down gives raw
so i am going to make my own
Yeah so what i am saying is you need to prefetch the data, scrape it and save the results.
Cause doing it all the time is very resource intensive
If the data changes often then you need to do the above process on a fixed interval.
Alligator mississippiensisOP
Yep I will do this
@Clown Yeah so what i am saying is you need to prefetch the data, scrape it and save the results.
Alligator mississippiensisOP
sad json one is not working 😦
it says "This Serverless Function has crashed."
i just made it as simple as possible

it just pick random from json and gives
it's working fine in localport
@riský how often does this occure? and is it on a cron script?
Alligator mississippiensisOP
everytime..

but i changed the code
now it will pick randomly from json
but sadly its not even starting 💀