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

"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.",

Open rohitgaidhane opened this issue 10 months ago • 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.",

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 avatar Apr 02 '24 06:04 rohitgaidhane