-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
301 Unknown error #134
Comments
I'm getting this too. It seems the backend is trying to redirect to "https://beta-api-eu.customer.io" but the client is not following redirects. I believe this is an EU only issue. if you log the full error you get:
A workaround would be to use the REST api instead. |
Looking further it appears This is a pretty serious issue since if the backend wants to make a simple redirect, that could brick entire apps relying on cio. Please look into it. |
Thanks for the info @asplunds, I have a PR ready with #135. The real root cause here, however, is that you're not configuring the client to use the EU region (it defaults to the US). You should be creating the client like so:
Setting up the correct region avoids unnecessary redirects |
Thanks for the response @mike-engel, this was a mistake on my part I should've configured my client to use the EU region. I'm glad this was caught and being fixed however, since following redirects is still important regardless of region. |
Fix released with |
This code logs: 301 Unknown error
I'm using "customerio-node": "3.4.1",
I don't know what to do
The text was updated successfully, but these errors were encountered: