Skip to content
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

ResourceNotFound issue when using intercom.users.create #224

Open
vallode opened this issue May 7, 2020 · 2 comments
Open

ResourceNotFound issue when using intercom.users.create #224

vallode opened this issue May 7, 2020 · 2 comments

Comments

@vallode
Copy link

vallode commented May 7, 2020

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...

@thibaut-pro
Copy link

Exact same problem here.

@thibaut-pro
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants