Solved

Unauthorized request 401

  • 18 July 2023
  • 1 reply
  • 121 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

icon

Best answer by Mau 18 July 2023, 12:17

View original

1 reply

Userlevel 2

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