"could not read Username" failure on Push. No recent config changes #23486
-
Hello! I went to push some code using the Android Studio plugin (how I always interact with GitHub). And got this error: could not read Username for ‘https://github.com’: Device not configured I haven’t changed anything in regards to GitHub config recently. I checked for my Personal Access token if it could have expired. Nope. I checked if I somehow was not on https anymore (searching around this was the most common problem). Also nope. This is what I want, right?
And those are all the ideas I have. Can anyone please help me where to look for what broke? Full error when I go to Push from Android Studio Git console:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Update next day: I regenerated the Personal Access Token, then deleted and recreated the GitHub account in Android Studio settings. No change. I looked at the file at the end of the error:
I also tried some commands from the terminal to try to eliminate Android Studio from the issue. |
Beta Was this translation helpful? Give feedback.
-
Looks like PAT simply was caching incorrectly. |
Beta Was this translation helpful? Give feedback.
-
You can also "Invalidate Caches..." in Android Studio. That fixed the issue for me. |
Beta Was this translation helpful? Give feedback.
Looks like PAT simply was caching incorrectly.
Machine restart fixed the issue.