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 472 forks source link

Not able start media capture #2831

Closed pragadeeshNIS closed 3 months ago

pragadeeshNIS commented 5 months ago

What happened and what did you expect to happen?

I am using mobile SDK along with the serverless demo. I am unable to start the media capture as it throws "unauthorized" error.

URL to start media capture https://XXXXXXX.execute-api.ap-southeast-1.amazonaws.com/Prod/start_capture?title=XXXXXX

Have you reviewed our existing documentation?

Reproduction steps

Amazon Chime SDK for JavaScript version

latest

What browsers are you seeing the problem on?

Android

Browser version

9.0

Meeting and Attendee ID Information.

nil

Browser console logs

no information

pragadeeshNIS commented 5 months ago

This is the exact error I get when I call the API from an Android device

API : https://XXXXXXX.execute-api.ap-southeast-1.amazonaws.com/Prod/start_capture?title=XXXXXX

Response : HttpResponse(data={"message":"Missing Authentication Token"}, httpException=HttpException(errorCode=403, errorReason=))

MingcongQi commented 3 months ago

HI, How do you call the API and pass the authentication role? could you help post your codes here? Here is the demo to create the media capture https://github.com/aws/amazon-chime-sdk-js/blob/main/demos/serverless/src/handlers.js#L433 and media capture endpoint in ap-southeast-1 is media-pipelines-chime.ap-southeast-1.amazonaws.com listed in https://docs.aws.amazon.com/general/latest/gr/chime-sdk.html

pragadeeshNIS commented 3 months ago

I resolved the issue I was calling the wrong URL wrong URL: https://XXXXXXX.execute-api.ap-southeast-1.amazonaws.com/Prod/start_capture?title=XXXXXX correct URL: https://XXXXXXX.execute-api.ap-southeast-1.amazonaws.com/Prod/startCapture?title=XXXXXX