This might be a GitHub question rather than an Ope...
# questions
w
This might be a GitHub question rather than an OpenHands question, but I’ve been getting this message:
Copy code
Interesting! The API shows I have push permissions, but git push still fails. This might be a git credential caching issue or the token format. Let me try clearing git credentials and using a different approach:
After updating my GitHub token. Is there a good way of addressing this?
a
Is this on our cloud offering? How are you updating your github token?
w
This is running locally, but in a browsers (not the CLI). I updated by token under Integrations. I found out, however, that by killing OpenHands, then restarted it, the problem was eliminated.
Perhaps it’s some type of caching issue, either on the GH side or the OpenHands side?
a
hmm! ok yea it's a bit harder to debug locally without the logs but will def look into it. Out of curiosity are you using a github PAT ? or no?
w
Yes, a GitHub PAT (tried both the classic kind and the fine-grained type, with the same results).
Is there a way of getting my local log?
(For future reference)
a
I'm curious if your github token expired during a conversation and that's why the push failed (we use the git token in the git urls)? But if it's a PAT and you set a long expiration than that should not be the issue
w
The token that OpenHands had from a previous session was expired. I created a new token and added it, but it was still acting (sort of) as if it had the expired token.
I gave it a 60 day expiry
a
ahh ok.. so if you added the token but did not tell openhands to explicitly update the git urls, it likely was still using the expired token in its git ops
we have a PR to fix this that should land this week / be released early next week
w
Well, I did tell it to update the URLs (and that I had updated the token) and it tried to use the updated token, but was failing.
As I mentioned above, it reported that it had the necessary permissions but GitHub was still not letting it perform the relevant tasks (in this case, creating a PR).
a
I see I see, ok yea in that it's possibly a caching issue on our end I can look further into