Skip to content

bug: got internal server error when sending different user id for the same email #137

@StewartJingga

Description

@StewartJingga

Describe the bug
When first time sending below identity headers:

Compass-User-UUID: 12345
Compass-User-Email: john.doe@example.com

No issue occurs, but when we are changing the ID but keeping the same email like below:

Compass-User-UUID: 0268fbb2-ee3c-479a-88bb-d4d47e5725aa
Compass-User-Email: john.doe@example.com

To Reproduce
Steps to reproduce the behavior:

  1. Create a request with Compass-User-UUID and Compass-User-Email headers
  2. Create another request but change only the value of Compass-User-UUID
  3. Got 500 error

Expected behavior
it should return more informative and concise error e.g. (409 - User email already existed with different ID)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginvalidThis doesn't seem right

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions