API Request Returning 502 Persistently #24489
-
Hello! I’m using the GitHub API v3 with the Golang SDK. I’m able to send the other requests in my program, but am having trouble with one call in particular. Whenever I send a request to get all the repos in an organization, I am getting a 502 Server Error. I am able to send other calls with that same client, so I don’t think that’s the issue. However, I haven’t found any potential solutions to this in the documentation. Any help woud be greatly appreciated! Below is my function in case it helps:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Just some more information, I’m able to send the same request through my browser and Postman, and get a successful response of the collection of Repos. In my case, the org is “kubernetes”, and the request is: |
Beta Was this translation helpful? Give feedback.
-
You are getting bitten by google/go-github#1037. Removing the Accept header values fixed the problem for me. |
Beta Was this translation helpful? Give feedback.
You are getting bitten by google/go-github#1037. Removing the Accept header values fixed the problem for me.