amazon-chime-sdk-js icon indicating copy to clipboard operation
amazon-chime-sdk-js copied to clipboard

New Chime Meetings SDK is giving 429 Rate exceeded error

Open dmoughabghab opened this issue 2 years ago • 1 comments

Hi all,

After upgrading to the new @aws-sdk/client-chime-sdk-meetings package ( the old one is depreciated ) I get the following errors even when its my first call in a long time

'$metadata': { httpStatusCode: 429, requestId: '58ec9880-ea5a-4459-9368-94541cdf2c82', extendedRequestId: undefined, cfId: undefined, attempts: 1, totalRetryDelay: 0 },

I can't seem to get around it and it used to work in the older versions

My code is as follows


async createChimeMeeting(externalMeetingId: string): Promise<CreateMeetingCommandOutput | undefined> {
        const params: CreateMeetingCommandInput = {
            // ClientRequestToken: uuid(),
            MediaRegion: 'ap-southeast-2',
            ExternalMeetingId: externalMeetingId,
        };
        console.log('Chime Create Meeting Params', JSON.stringify(params))
        const command = new CreateMeetingCommand(params);

        try {
            const data = await this.client.send(command);
            console.log('Chime Create Meeting Data', JSON.stringify(data))
            return data
        } catch (error) {
            console.log("error", error)
        }
    }

Thanks for your help

dmoughabghab avatar Aug 29 '23 04:08 dmoughabghab