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.

Missing token or secret

See original GitHub issue

Hi, I’m not sure whether this is a directline issue or webchat but i’m getting the following error

{
  "error": {
    "code": "BadArgument",
    "message": "Missing token or secret"
  }
}

even after i’m providing the correct secret (that i’ve verified from azure)

I’m using master/webchat-es5.js (dated 24-Apr-2019)

To give more context to how i’m using is I’m running the bot in my local using ngrok and setting the url to bot channel registration i did on azure using the secret from the bot channel registration i’m building the webchat

in ngrok i’m getting following error (OPTIONS /api/messages 405 Method Not Allowed)

Here is the screenshot of all the action.type i’m getting back from webchat

image

But after some time (if I leave it for 10mins ) it starts working, it is happening every time

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vincec-msftcommented, May 3, 2019

The caching is not new. If you were creating new bots then they would be read immediately because they’re not in the cache. But existing bot records have been cached for as long as I know.

0reactions
tdurnfordcommented, Jun 10, 2019

It looks like you are correct. You have to change the bots messaging endpoint while the bot is not running otherwise it will not update correctly. Thank you for your help in diagnosing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Bot Service Direct Line API v3.0 constantly throwing ...
I have several activity records for activities created through this API. But now I am getting this error message constantly on even getting ......
Read more >
There was an error sending this message to your bot: HTTP ...
Hi. I have created a bot using azure bot service. But I am getting this error in when I test it. There was...
Read more >
Resolve API Gateway REST API 403 “Missing Authentication ...
When I try to invoke my Amazon API Gateway REST API, I get 403 "Missing Authentication Token" error messages. How do I troubleshoot...
Read more >
Secret token not generating - Discuss Kubernetes
Your pods have nothing to do with your secrets in this case. You created a service account and the API creates a token...
Read more >
Cannot remove account when token is missing in secret storage
[error]: Account for instance https://gitlab.com and user me is missing token in secret storage. Try to remove the account and add it again....
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