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.

v5: 401 api_key is missing

See original GitHub issue

Hi getstream team,

Since the last update to v5.0.0, I got issue when retrieving feed_activity, with 401 status code api_key is missing.

I checked the breaking changes, I didnt find anything to change in my codebase.

  const getStreamClient = stream.default.connect(
    getStreamConfig.apiKey,
    getStreamConfig.apiSecret,
    getStreamConfig.apiId,
    { location: getStreamConfig.location },
  );

getStreamClient.feed(correlationType, correlationId);

await entity.get(JSON.parse(metadata));

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
alexabidricommented, Jul 10, 2020

Relevant snippet is as following,

params: {
  api_key: this.apiKey,
  location: this.group,
  ...(kwargs.qs || {}),
},

if metadata in your snippet has apiKey as null, it will override.

My bad you are right, I discussed with my frontend colleague, he was sending the api_key at some calls. This issue can be closed, sorry guys!

1reaction
alexabidricommented, Jul 9, 2020

@mahboubii If u dont mind, I will try tomorrow as I am on another task and I am working in Asia, already end of day 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

New Install 401 With X-Api-Key #1971 - GitHub
I am trying to work out if i have done something wrong or am missing something. I can see through fiddler that the...
Read more >
3244999 - 401 error - Invalid API Key or source is missing
Receive error ' 401 error - Invalid API Key or source is missing' when executing an API query.
Read more >
Client ID behavior in API key security definitions - IBM
How the Client ID behaves in API key security definitions in IBM API ... When Return V5 Responses compatibility option is off: 401...
Read more >
PageSpeed Insights API returning 401 error at seemingly ...
As on page 5 to 10 API are called with same API key and credentials. Token is also not expired but it generate...
Read more >
Server API key missing or Invalid [401 Error]
I am facing this issue while using CV screen scope till last week everything was running fine. Now CV Screen scope activity is...
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