braze-inc / braze-web-sdk

Public repo for the Braze Web SDK
https://www.braze.com
Other
70 stars 25 forks source link

[Bug]: Braze SDK Authentication falied with code 22 after upgrading version v4.8.3 -> v5.2.0 #157

Open tomdwan123 opened 2 weeks ago

tomdwan123 commented 2 weeks ago

Braze Web SDK Version

5.2.0

Integration Method

CDN

Browser

Chrome, Firefox, Safari, Edge

Steps To Reproduce

import * as braze from "@braze/web-sdk";
braze.initialize(<api_key>, {
            baseUrl: <base_url>,
            enableLogging: true,
            enableSdkAuthentication: true
            allowUserSuppliedJavascript: true,
            sessionTimeoutInSeconds: 1800,
        });

Expected Behavior

Braze API should be sent successfully and Braze SDK auth failed error with status code 22 should not appear. All things are good after upgrading to version @braze/web-sdk 5.2.0.

Actual Incorrect Behavior

Braze API throws an exception related to content "Braze SDK Error: SDK Authentication failed with error code 22. (v5.2.0)" after upgrading version to @braze/web-sdk 5.2.0.

image

Verbose Logs

No response

Additional Information

No response

tomdwan123 commented 2 weeks ago

It would be really great if we had a way to fix it. Thank you.

sircelsius commented 2 weeks ago

Hi @tomdwan123 thank you for reporting. We will investigate and get back to you ASAP.

tomdwan123 commented 2 weeks ago

Thanks @sircelsius.

tomdwan123 commented 2 weeks ago

One more piece of info for this issue: This issue will happen when upgrading the version to 5.1.0+

image
sircelsius commented 2 weeks ago

hi @tomdwan123 after looking into this a bit further, we will need more information regarding your setup.

Could you please route this through our support via support@braze.com, so we can investigate further?

tomdwan123 commented 2 weeks ago

Hi @sircelsius I sent out an email to the Support Team of the Braze. Thanks so much.