pull down to refresh
282 sats \ 2 replies \ @Anonomoto 23 Feb 2023 \ on: Daily discussion thread
I’m building something in NodeJS.
Headers look great, body looks great, I run the app and sent the request, it returns ‘401, Unauthorised’… every. Damn. Time.
FML.
Better check those headers again ;)
reply
Good call, headers rechecked.
In the end it was a malformed endpoint URL (it's an Auth API, so needs a variable passed in), a little debug sesh and voilà, problem resolved.
Feels good!
reply