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.

Signature is invalid

See original GitHub issue

Whenever I call feed.get in my frontend client, I get a 403 signature is invalid error.

The odd thing about this is that after I get the feed, I also subscribe to the feed, and that is working.

Here is my frontend code

const client = stream.connect(
  appKey,
  userToken,
  appId,
  "us-east"
);

const feed = client.feed("user", userId);

feed
  .get({ limit: 5 })
  .then((results: any) => {
    handleData(results);
  })
  .catch((err: any) => console.log(err));

feed.subscribe((data: any) => {
  handleNewData(data);
});

Here is how I generate the token on my backend

const client = stream.connect(
  appKey,
  appSecret,
  appId,
  "us-east"
);
const userToken = client.createUserToken(userId);
return userToken;

I’m following what is in the docs as far I can tell, and again, subscribing to new activities is working.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tbarbuglicommented, Dec 13, 2018

no worries, glad we figured it out 😃

0reactions
tylermasseycommented, Dec 13, 2018

@tbarbugli 😅 this is embarrassing but they weren’t the same. After making that change, it’s working now. Thank you for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Digital signature is showing as invalid. How to validate the ...
The user can validate the signature if the Root CA is already installed on Microsoft Certificate Store. As an alternative, the recipient must ......
Read more >
How do I Resolve the "At least one signature has problems ...
Tap the "Signature Panel" button at the top of your PDF where the error is. · Then press "Validate All" in the signature...
Read more >
Adobe Acrobat Reader PDF Error: "At least one signature is ...
Issue. I received a PDF that has a banner at the top saying "At least one signature is invalid." How do I fix...
Read more >
Solved: Re: At least one signature is invalid- on digital
All our PDFs become invalid in Adobe Reader DC beause of the signature, but in PRO version works fine. The screenshot from of...
Read more >
My signature appears invalid in Adobe Acrobat Reader DC
When opening documents downloaded from DocuSign, Adobe Acrobat Reader DC displays the error "At least one signature is invalid".
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