#server action error handling - status 400/500 not being caught in try/catch

9 messages ยท Page 1 of 1 (latest)

molten remnant
#

I have an API fetch as a server action, and I am confused why when the request returns a 500 or 400 status code, it does not get caught in the try/catch catch block? You can't return new Error either.

wary lynxBOT
#

๐Ÿ”Ž 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)

kindred badger
molten remnant
#

the joulev.dev site dont work for me

kindred badger
molten remnant
kindred badger
#

happy to help ๐Ÿ™‚ . Please mark solution

wary lynxBOT
#
โœ… Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer
kindred badger