Skip to content

Http Handler response hangs indefinitely when handler returns int value #1305

@nkosi23

Description

@nkosi23

Describe the bug
In F#, when an http handler returns an int value (whether int or Task), the body of the handler is correctly executed but no response is ever returned to the client :

  • the browser client is waiting for the response to complete,
  • while in postman i see that an empty response is returned and it complains that the response is not valid.

The problem does not occur if i cast the value to decimal.

To Reproduce

[<WolverinePost("/api/test")>]
let myTestHandler() =
     let myValue : int = 5
     myValue

Expected behavior
A response is returned to the client.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox/Postman
  • Version: Wolverine 3.10.0

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    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