Err_name_not_resolved

[Problem/Question]
When i try to authenticate via the sendbirdcall.authenticate, I receive the ERR_NAME_NOT_RESOLVED when it’s making a post request to https://api-.calls.sendbirds.com/v1/users//login


// If problem, please fill out the below. If question, please delete.
[SDK Version]
“sendbird-calls”: “^1.10.21”,

[Reproduction Steps]
Using SendBirdCall.authenticate({ userId, accessToken }, (result, error) => to authenticate.

[Frequency]
every time

[Current impact]
not able to authenticate

Looking at the URL in your error, https://api-.calls.sendbirds.com/v1/users//login, two values appear to be empty: the App ID (after “api-”) and the user ID (between “users/” and “/login”). An empty App ID produces a hostname that can’t be resolved, which is what ERR_NAME_NOT_RESOLVED means. So I’d check these things:

  1. Call SendBirdCall.init(APP_ID) with a non-empty App ID before authenticate(), and log APP_ID right before that call. If it comes from an env variable (for example process.env or import.meta.env), it is often undefined at runtime because of a wrong variable name or prefix, or because the build didn’t pick it up.
    1. Make sure the userId passed to authenticate() isn’t empty or undefined at that moment, for example because it is still loading.
      1. Check the host in the Network tab. It should look like api-YOUR_APP_ID.calls.sendbird.com, and the domain is sendbird.com. If your logged hostname really reads “sendbirds”, something in your configuration or a custom proxy is rewriting it.
    2. If the values are present and the host is correct, please share the init and authenticate code with the secrets removed, and the failing request URL with the App ID masked.