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

"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

Open
rohitgaidhane opened this issue Apr 2, 2024 · 3 comments

Comments

@rohitgaidhane
Copy link

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
Copy link
Author

I have provide this all policies to user account
image

@prepsaKayastha
Copy link

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

@dingyishen-amazon
Copy link

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

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

No branches or pull requests

3 participants