I am using SendBirdCall.min.js version 1.10.20.
My authentication code is as follows:
const authOption = { userId: USER_ID, accessToken: ACCESS_TOKEN };
SendBirdCall.authenticate(authOption, (result, error) => {
if (error) {
alert("ERROR: " + error);
// Handle authentication failure.
} else {
SendBirdCall.connectWebSocket()
.then(function () { } )
.catch(function () { alert('ERROR - Unable to connect to socket'); } );
}
});
I get the following error: TypeError: Failed to Fetch.
In my google console, I noticed the URL https://(app id here).calls.sendbird.com/v1/users/152_mari_colas/login emits the following error: ERR_NAME_NOT_RESOLVED.
If I remove “calls.” from the URL, I get a response. It is as if the url “(app id here).calls.sendbird.com” does not exist, but the APP ID is correct.
Has Sendbird removed API URLs with the word “calls” in them?