#Error: Connection Closed

28 messages · Page 1 of 1 (latest)

manic mica
#

Hello, I have been building this app it’s working fine on local , it breaks in production on routes like products/[id] and categories/[slug]. In console its shows
Error : Connection closed

https://store-thing.vercel.app/categories

StoreThing

Your One-Stop Shop for Everything You Love!

hollow vaporBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

wild otter
wild otter
#

@manic mica solved?

manic mica
#

I have removed the code where database being used and crashing has stopped, however its still crashing at some pages. I'm still working on those pages to identify whats causing this.
Thank you it was great help , can you please tell how can i fix this as im using mongodb.

wild otter
manic mica
wild otter
manic mica
#

yes

#

when i hard refresh it works

wild otter
#

when does this error pop up? When you click something? Hover something? When you interact with something? ...

manic mica
#

when i navigate to any product detail page (/products/1)

wild otter
manic mica
#

yes

#

well now im getting this

#

fakestore api is down , i'll try it later

wild otter
manic mica
wild otter
manic mica
#

its working fine

wild otter
manic mica
#

thats right

wild otter
manic mica
#

no , after removing these two it works well.

wild otter
# manic mica no , after removing these two it works well.

then it looks like the api that you are using is broken (or at least serverless hosted) and then your connection is broken, because the server was shut downed. If I would be you, I would create a constants.ts file that contains some products and then use that. It's much more reliable (or of course your own database)

wild otter
#

@manic mica solved?

manic mica
hollow vaporBOT