carwings icon indicating copy to clipboard operation
carwings copied to clipboard

Treat HTTP 404 as ErrNotLoggedIn

Open andig opened this issue 3 years ago • 3 comments

Seems that the API will sometimes return 404 if not logged in which would currently result in

received status code %d

andig avatar May 30 '21 10:05 andig

Can you attach a payload when this occurs? I'm curious if there is any additional info or context from the body of the response that might be helpful.

joeshaw avatar Jun 10 '21 14:06 joeshaw

Unfortunately not- I've just found this in user-contributed logfile during testing. I won't be able to reproduce that.

andig avatar Jun 10 '21 15:06 andig

I can actually repro this now. If I do an api request without prior connect it will try to login without the baseParam being set. That in turn gives a 404. It's user error, but not entirely obvious.

andig avatar Jun 16 '21 19:06 andig