401 error when trying to run forge-pull #433
-
Running forge-pull gives me a 401 "unauthorized", "/graphql" error with the message "bad credentials". |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Update, I moved my configuration around a bit, eventually going back to the initial state, and now running forge-pull, pushing to / pulling from a repository etc. prompts for my username and password. |
Beta Was this translation helpful? Give feedback.
-
Try However the Github web interface shows the token string only right after creating it, so there is no way for you to verify that this token is accepted except to try to make a request using it (and that indicates that it is not accepted). So I would recommend creating a new token (while making sure to use the correct permissions) and then pasting that into |
Beta Was this translation helpful? Give feedback.
-
You are not supposed to ever get that prompt. See #293 (comment) for why. Ghub has a work around for that but apparently it does not work for you. Maybe you use a very old ghub version. Or maybe something else is wrong, I don't know. So now we have three issues. The work around to prevent the next issue does not work. When something goes wrong, then you get username and password prompts instead of a meaningful error message because of an emacs bug. You have misconfigured something. It it is very hard for me to diagnose what exactly you have done wrong from a distance. There's also a 5% that it isn't actually you who has done something wrong. I don't have the energy to help users one on one with such issues anymore. It is a huge emotional drain. You should be able to get this working on your own by very carefully retracing each step, while consulting the documentation. I now plan to write a debugging tool similar to the one I have written for I realize I am being a bad tempered here, but I just cannot take it anymore. Sorry for that. I hope you can understand. |
Beta Was this translation helpful? Give feedback.
Answering my own question: I apparently had a stray
.authinfo
. No idea where that came from.