TOKEN_SECRET_NOT_PROVIDED

No secret or token provided.

Why I'm seeing this​

The token or secret configured in myjsblock.credentials.js are invalid. When pushing a new version, the token or secret configured in myjsblock.credentials.js under token or secret was empty.

How to fix it​

Make sure the token and secret are stored in the myjsblock.credentials.js not to be confused with myjsblock.config.js file. This secret and token can be created in the Appmachine Designer after adding a new 'Javascript' block.

More information about creating new tokens and secrets, see create-new-token-secret.

Your myjsblock.credentials.js for such a project should be:

{
  "token": "TJ9plldgQSL87dnK6ZIVpzTszlG3TPKo",
  "secret": "ifb1kEBUYBJ17NSQWdBUNoTTU5O2d1jlTJ9plldgQSL87dnK6ZIVpzTszlG3TPKo"
}

Last updated