Skip to content

Better error message handle #45

@Alexise857

Description

@Alexise857

When adding a new tax, backend response the following:
message: "Validation error: code=400, message=Unmarshal type error: expected=float64, got=string, field=percentage, offset=46, internal=json: cannot unmarshal string into Go struct field TaxCreateRequest.percentage of type float64"
type: "invalid_request_error"

Steps to reproduce:
location_ids: ["loc_YwJ0zmuFcOwCrj"]
name: "test"
percentage: "15"

image

A better descriptive error will be better

Metadata

Metadata

Assignees

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