aws / amazon-chime-sdk-js

A JavaScript client library for integrating multi-party communications powered by the Amazon Chime service.
Apache License 2.0
699 stars 473 forks source link

"message": "Account Id 590183729232 is not authorized to call deprecated Amazon Chime SDK API on the \"chime\" endpoint, use one of the \"*-chime*\" endpoints instead.", #2870

Closed rohitgaidhane closed 3 weeks ago

rohitgaidhane commented 3 months ago

I am trying to create meeting using aws chime sdk but getting below error "message": "Account Id 590183729232 is not authorized to call deprecated Amazon Chime SDK API on the \"chime\" endpoint, use one of the \"-chime\" endpoints instead.",

code sample `const express = require('express') const app = express() const AWS = require('aws-sdk') const { v4: uuid } = require('uuid') // import env from "dotenv"

const cors = require('cors') const region = 'us-east-1' AWS.config.loadFromPath('./config.json');

const chime = new AWS.Chime({ region })

chime.endpoint = new AWS.Endpoint( 'https://service.chime.aws.amazon.com/console' )

app.get('/meeting', cors(), async (req, res) => { console.log("ddbbb") try { const response = {} response.meetingResponse = await chime .createMeeting({ ClientRequestToken: uuid(), MediaRegion: region, }) .promise()

    response.attendee = await chime
    .createAttendee({
        MeetingId: response.meetingResponse.Meeting.MeetingId,
        ExternalUserId: uuid(),
    })
    .promise()

res.send(response)
} catch (err) {
    res.send(err)
}

})

app.listen(5000, () => console.log(Video calling POC server listening at http://localhost:5000)) `

rohitgaidhane commented 3 months ago

I have provide this all policies to user account image

prepsaKayastha commented 1 month ago

Hi @rohitgaidhane Were you able to resolve this? I'm facing the same issue

dingyishen-amazon commented 1 month ago

Please migrate to the Amazon Chime SDK Meetings namespace following https://docs.aws.amazon.com/chime-sdk/latest/dg/meeting-namespace-migration.html.