I'm getting this when running latest main: ```18:3...
# dev-help
l
I'm getting this when running latest main:
Copy code
18:32:32 - openhands:INFO: git.py:149 - Returning 401 Unauthorized - Git provider token required for user_id: None
INFO:     127.0.0.1:48694 - "GET /api/user/info HTTP/1.1" 401 Unauthorized
INFO:     127.0.0.1:48694 - "GET /api/settings HTTP/1.1" 200 OK
I never configured git in OpenHands.
nod 1
b
There's been a regression
l
Thanks. I'll roll back to a previous commit then.
b
It still works I think. Just annoying error message.
And it happens everytime you refresh 😄
l
Yeah I supposed so, but since the docker build process takes forever with my slow connection, I'd rather have a working build without that issue.
I usually pin the runtime image with the env var, so that it doesn't build every time, but the 0.50 image doesn't work with the latest changes (the initialization process breaks due to the new git parameters). I'll find a commit that works and stick on it. Thanks again!
👍 1
c
@flaky-jordan-67349 it could be related to auth changes ?
l
The errors seem to start with this commit: Enterprise sso: https://github.com/All-Hands-AI/OpenHands/issues/10008)
f
Yeah. I believe it is the changes to check for if you are "authenticated". The endpoint (/api/user/info) has always returned a 401 if you don't have any GIT repos configured.
l
I can confirm it's something in the frontend because I had to run make build after checking out the commit before that. Edit: Just a side note: the error triggered also every time the tab lost focus (alt+tab or ctrl+tab). I don't know if you want a refetch every time that happens.
f
The prior code would not call the /info endpoint if a GIT repo was not configured. S
I'll need to look into it.
thanks on a stick 1
Should fix it.
l
Thanks. I tested the PR, it seems fine so far.
👍 1