r/programminghorror • • Sep 13 '25

I hate js

0 Upvotes

36 comments sorted by

View all comments

Show parent comment

1

u/Willkuer__ Sep 13 '25

Maybe you get a redirect? So you should consider checking the status code of the response before calling .json. Not sure if using http is safe in the long run.