Skip to content

ApiKey basesd rate limit for calls to /token #489

Open

Description

@rodrigomaraujo

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?

Activity

  1. chughts commented on Mar 25, 2021

    @chughts
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions