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, |
|
}) |
|
} |
The
parserErrorthat is originating fromBodyParseris empty when called programmatically likefetch API.auth/middleware/validate_auth_payload.go
Lines 15 to 20 in 7d8d4ea