Skip to content

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

@jiikko

Description

@jiikko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions