Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiKey basesd rate limit for calls to /token #489

Open
rodrigomaraujo opened this issue Mar 25, 2021 · 1 comment
Open

ApiKey basesd rate limit for calls to /token #489

rodrigomaraujo opened this issue Mar 25, 2021 · 1 comment

Comments

@rodrigomaraujo
Copy link

Hello guys, I´m using node-red-node-watson for a production service receiving input for a VoiceGateway and WhatsApp API. It´s not a so big service, but we reached 300 to 500 simultaneous users chating. We implement Watson Assistance calls with 'watson-conversation-v1´ node.

At peak times whe are getting "ApiKey basesd rate limit for calls to /token" error message. IBM Labs says that´s because we generate a Auth every message that sent to Watson Assistance service.

Anyone get this error too?

I am not very knowledgeable about the Watson APIs and NodeRed implementation, is it possible to reuse an instance of IamAuthenticator between multiple calls to the service?

@chughts
Copy link
Member

chughts commented Mar 25, 2021

The Assistant node could be reworked to cache an Authenticator until it expires.

I am open to pull requests with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants