Skip to content

[Middleware]: parserError is empty when called programatically #1

@kasipavankumar

Description

@kasipavankumar

The parserError that is originating from BodyParser is empty when called programmatically like fetch API.

if parserError := c.BodyParser(&expectedPayload); parserError != nil {
return c.Status(fiber.StatusUnprocessableEntity).JSON(&fiber.Map{
"status": fiber.StatusUnprocessableEntity,
"error": parserError,
})
}

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions