howdyai / botkit

Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
MIT License
11.48k stars 2.28k forks source link

webex adapter error - wx-js-sdk services: failed to init initial services, the provided token is not a valid format #1997

Closed darrenparkinson closed 4 years ago

darrenparkinson commented 4 years ago

What are you trying to achieve or the steps to reproduce?

On initial load using npm start after generating a new project, the following error is emitted:

Enabling plugin:  Webex Adapter
Webhook endpoint online: xxxx
wx-js-sdk services: failed to init initial services, the provided token is not a valid format

It seems like the error is coming from services.js in webex core.

https://github.com/webex/webex-js-sdk/blob/master/packages/node_modules/%40webex/webex-core/src/lib/services/services.js

What was the result you received?

I received the error.

What did you expect?

I didn't want to get an error. I'm not yet sure what the side effects of that will be. The bot is responding to requests.

Context:

darrenparkinson commented 4 years ago

It seems like this only happens if you have an older bot token. The newer ones are longer with an extra section on the end. The new token doesn't give the error.