question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Null" Consumer_Key in Authorization Header

See original GitHub issue

Running a simple GET request to verify credentials gave the following error in twitter.m.js

e.headers.raw() is not a function

To debug it, I removed it from h._handleResponse function. The above error went away but received a response from twitter server of 401.

On looking the request, I found OAuth oauth_consumer_key="null" in Authorization header.

Seems like the function is not setting the auth header correctly?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
matt2legitcommented, Mar 19, 2020

I’m seeing this in my react-native application. I removed the .raw() and it works fine. Using patch-package for now to save this change in my project.

1reaction
peterpmecommented, Apr 29, 2020

💯 Thanks @Nick-Gottschlich !! Release in 0.11.0 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Receiving null Authorization header in Spring Boot from ...
I am receiving a null Authorization header when I am sending a request to a back-end controller designed with Spring Boot.
Read more >
Authenticators - RestSharp
The HttpBasicAuthenticator allows you pass a username and password as a basic Authorization header using a base64 encoded string.
Read more >
Authorization - HTTP - MDN Web Docs - Mozilla
This header indicates what authentication schemes can be used to access the resource (and any additional information needed by the client to use ......
Read more >
SOLVED: Issues with Invalid Authorization header, ch:service
where the —API KEY— is obviously replaced with my API key. I'm getting the repsonse back as: { "error": "Invalid Authorization header", "type":...
Read more >
Gateway Error Codes | Mastercard Developers Platform
The OAuth Authorization header is a string that captures all the parameters ... The consumer key identifies the project and key which will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found