POST request hangs


#1

Hi guys,

New to Adonis v4 (previously used 3.2 and loved it).

I’ve created a simple POST endpoint for my API. When I send a request to it with no params/body, it works fine, but as soon as I add some data, anything at all, the request just hangs until timeout with no response from server.

Any idea what may be at work?


#2

I think I may have found the culprit… I had setup bodyparser as described in http://adonisjs.com/docs/4.0/request

I removed it, and now things work fine… I don’t understand what specifically the problem is, but things behave as expected now.


#3

upon further investigation, i now see that i had blindly followed the guide, and inadvertently added bodyparser to both my providers, and my middleware, even though it was already listed… so apparently having it listed twice there is a no no

:stuck_out_tongue:


#4

Does it work for you now?


#5

yes it does, thanks!