You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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
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.",
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()
})
app.listen(5000, () => console.log(
Video calling POC server listening at http://localhost:5000
))`
The text was updated successfully, but these errors were encountered: