intercom / python-intercom

Python wrapper for the Intercom API.

Home Page:https://keyes.ie/things/python-intercom/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ResourceNotFound issue when using `intercom.users.create`

vallode opened this issue · 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...

Exact same problem here.

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.