Skip to content

fix: certain endpoints return errors on "error" property instead of "message"#96

Open
mauriciogior wants to merge 2 commits into
AbacatePay:mainfrom
mauriciogior:fix/error-message
Open

fix: certain endpoints return errors on "error" property instead of "message"#96
mauriciogior wants to merge 2 commits into
AbacatePay:mainfrom
mauriciogior:fix/error-message

Conversation

@mauriciogior

Copy link
Copy Markdown

Descrição

Durante a integração notei que a função customer.create estava retornando erro undefined. Ao fazer a mesma request pelo terminal, notei que o retorno era o seguinte:

{ error: "body must have required property 'cellphone'", statusCode: 400 }

Não sei se todos endpoints retornam em "error", então mantive suporte para "message".


Notas Adicionais

Seria bom verificarem se existe algum endpoint que retorne erro na propriedade "message" e normalizar para retornar sempre no mesmo formato.

@changeset-bot

changeset-bot Bot commented Nov 16, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 60d4841

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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

Successfully merging this pull request may close these issues.

2 participants