Replies: 1 comment
-
I opened up a bug issue because I found the Authorization header was different when comparing against curl and postman |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋 ,
I’m getting a 401 when trying to auth as my Github App using token access. I don’t think there’s a problem with the Octokit client, but I can call the same api endpoint with my token using curl or postman with success. So there’s something different happening when using the client I’m just not sure what or how I might debug it.
I’m running client 6.1.1
This is how I’m calling with the client:
401 - Bad credentials // See: https://docs.github.com/rest (Octokit::Unauthorized)
from bundle/ruby/3.1.0/gems/faraday-2.7.10/lib/faraday/middleware.rb:18:in
block in call' from bundle/ruby/3.1.0/gems/faraday-2.7.10/lib/faraday/response.rb:42:in
on_complete'from bundle/ruby/3.1.0/gems/faraday-2.7.10/lib/faraday/middleware.rb:17:in
call' from bundle/ruby/3.1.0/gems/octokit-6.1.1/lib/octokit/middleware/follow_redirects.rb:73:in
perform_with_redirection'from bundle/ruby/3.1.0/gems/octokit-6.1.1/lib/octokit/middleware/follow_redirects.rb:61:in
call' from bundle/ruby/3.1.0/gems/faraday-retry-2.2.0/lib/faraday/retry/middleware.rb:153:in
call'from bundle/ruby/3.1.0/gems/faraday-2.7.10/lib/faraday/rack_builder.rb:153:in
build_response' from bundle/ruby/3.1.0/gems/faraday-2.7.10/lib/faraday/connection.rb:444:in
run_request'from bundle/ruby/3.1.0/gems/faraday-2.7.10/lib/faraday/connection.rb:200:in
get' from bundle/ruby/3.1.0/gems/sawyer-0.9.2/lib/sawyer/agent.rb:99:in
call'from bundle/ruby/3.1.0/gems/octokit-6.1.1/lib/octokit/connection.rb:156:in
request' from bundle/ruby/3.1.0/gems/octokit-6.1.1/lib/octokit/connection.rb:84:in
paginate'from bundle/ruby/3.1.0/gems/octokit-6.1.1/lib/octokit/client/organizations.rb:142:in
organization_repositories'
Beta Was this translation helpful? Give feedback.
All reactions