Open jm252409 opened 1 year ago
Just for debugging purposes, try to simplify your local test code (do NOT share it online) by temporarily hard-coding your personal access token as a string, because it sounds like "net/http" is saying that it contains garbage (possibly a non-ASCII string, just a guess).
Your personal access token should look something like this: "abc_123...xyz" and somewhere around 40 characters long, made up of upper case letters, lower case letters, digits, and underscores.
Another debugging thing to try is to use something like https://github.com/gmlewis/go-httpdebug to dump a curl-equivalent version of your command... and as a last resort, modify "go-httpdebug" to actually print your token instead of hiding it, just to verify it is getting through.
Otherwise, I don't see any problems. Good luck, I hope you find the problem soon.
I've been trying to use this to authenticate to GHE. Having some issues:
Here's my code, I validated that my Personal Access token is coming in correctly and everything. I used the "NewEnterpriseClient" and followed the instructions reguarding my base URL/upload URL.
I've tripple checked my stuff and don't see anything wrong. Does this client work with GHE? Can anyone else verify?