Hey !
Since 1 or 2 weeks I start to have a CORS / 400 Error on a specific route which is:
https://api.lab.amplitude.com/sdk/vardata
It happens only in dev / staging env (both same API KEYS) where it doesn’t happen in my production env.
I tried a lot of stuff: generating new API KEYS, removing all staging experiments, updating SDK versions, changing pc, network but nothing seems to change that, it seems to be related to the staging project/deployment on Amplitude Experiment.
It’s really annoying for my devs and me as it’s spamming constantly the console and as a dev, having errors in the console is just frustrating.
If you have any clue on that subject, please help me, thanks! :)
Update from
Cause: On our staging / dev env we have a User property that is oversized. What I mean is that you seem to generate the `x-amp-exp-user` header based on User property we set in Amplitude Analytics and sending it to every experiment http request.
Without warning or error on your side you generate a large x-amp-exp-user header that you can't handle on your server as you answer a CORS Error where it's only a HTTP Header too large.
Workaround: reduce our user property
Update from Amplitude:
We will work on displaying a more clear warning or error.
Reply
Welcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comWelcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.