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

Receive Intercom::UnexpectedError when creating a company with race condition #569

Open
jiikko opened this issue Mar 16, 2021 · 0 comments

Comments

@jiikko
Copy link

jiikko commented Mar 16, 2021

I got Intercom::UnexpectedError when creating a company with race condition in test workspece.
I want a specific error class like Intercom::MultipleMatchingUsersError.

Version info

  • intercom-ruby version: 4.1.2
  • Ruby version: 2.5.8

Expected behavior

like Intercom::MultipleMatchingCompaniesError

Actual behavior

got Intercom::UnexpectedError

Steps to reproduce

  1. run intercom.companies.create(attributes) with 2process
  2. I got Intercom::UnexpectedError

Logs

Intercom::UnexpectedError
The error of type '' is not recognized. It occurred with the message: Company already exists. and http_code: '400'. Please contact Intercom with these details.

similar #448

thanks.

@jiikko jiikko changed the title Receive Intercom::UnexpectedError when creating a company with race condition Receive Intercom::UnexpectedError when creating a company with race condition Mar 16, 2021
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

1 participant