python-intercom icon indicating copy to clipboard operation
python-intercom copied to clipboard

ResourceNotFound issue when using `intercom.users.create`

Open vallode opened this issue 5 years ago • 2 comments

Python: 3.6.4 Python-intercom: 3.1.0

Not exactly sure how active this repository is, but thought I would raise this issue regardless.

When using intercom.users.create() we occasionally (sometimes in high burts) get a ResourceNotFound error, recently we have turned from using intercom.users.save() because we thought that might have been the issue. Regardless the error persists.

If anyone is aware of what could cause this error on the create method, that'd be great. As far as I am aware the method should create OR update a user if the user is not found, not sure why it would ever return a resource not found...

vallode avatar May 07 '20 10:05 vallode

Exact same problem here.

thibaut-pro avatar Feb 25 '21 21:02 thibaut-pro

Response from intercom support:

I pulled our logs and am seeing 2 requests to create the user at the exact same time. One was successful and the other resulted in the 404 error. I think a race condition is causing the 404/User not found error. We are in process of creating the profile when the second request is received. With the second request, we would try an update the profile - which is still in process of getting created - and why you are seeing the User Not Found error.

thibaut-pro avatar Mar 03 '21 16:03 thibaut-pro