Skip to main content
Solved

Unauthorized request 401

  • July 18, 2023
  • 1 reply
  • 459 views

Hi,

I am trying to update user attributes by using cio.identify(id=‘b1323111’, email=’test@test.com’) (id and email here are just for example)




but I am getting this error

Error executing function: Failed to receive valid response after 3 retries.
Check system status at http://status.customer.io.
Last caught exception -- <class 'customerio.client_base.CustomerIOException'>: 401: https://track-eu.customer.io/api/v1/customers/ad6c7690-a650-4a89-bf32-9a532fcf97a7 {'email': 'Taylorannpromo@gmail.com'}

{ "meta": { "error": "Unauthorized request" } }

I am using EU data center and using the correct api 

cio = CustomerIO(site_id, api_key, region=Regions.EU)

 

using the same api key for post customers api to get the customers from customer io that one is working but cio.identify is not working, 

I am using python sdk 

would really appreciate any help from the community.

Thanks

Best answer by Mau

Hi there, this error code means the request is unauthorized.

Here are a few factors to consider:

Please let us know if you were able to troubleshoot your issue with these articles. If you need any further assistance, feel free to reach out and we'll be more than happy to help!

View original
Did this topic help you find an answer to your question?

1 reply

Mau
  • 60 replies
  • Answer
  • July 18, 2023

Hi there, this error code means the request is unauthorized.

Here are a few factors to consider:

Please let us know if you were able to troubleshoot your issue with these articles. If you need any further assistance, feel free to reach out and we'll be more than happy to help!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings