flowcomponents icon indicating copy to clipboard operation
flowcomponents copied to clipboard

HTTP route component returns 404 Not Found for all methods except GET

Open khaledkhalil94 opened this issue 7 years ago • 6 comments

Hello,

I've been trying to use the HTTP Route component but I faced an issue which is that the route returns 404 Not Found if I use any method other than GET.

khaledkhalil94 avatar Jun 17 '19 06:06 khaledkhalil94

Please create a demo Flow and export it. I need to test it.

petersirka avatar Jun 17 '19 07:06 petersirka

flow_20190617-1107.txt

And I'm using Postman to send the requests

khaledkhalil94 avatar Jun 17 '19 07:06 khaledkhalil94

It works:

image

petersirka avatar Jun 17 '19 07:06 petersirka

I also just tested latest versions (Flow and HTTP Route) from github and it all (GET,POST,PUT,DELETE) works just fine.

molda avatar Jun 17 '19 07:06 molda

Turns out I was sending application/javascript in Content-Type instead of application/json and for some reasons it was returning 404.

Maybe it should return 400 in this case, what do you think ?

Thanks anyway for the fast reply guys, I appreciate it :)

khaledkhalil94 avatar Jun 17 '19 07:06 khaledkhalil94

application/javascript???? How can the server parse it? What will be the parsed object?

  • 404 I must check which rules are needed for 404, but for similar cases the server responds with 400 status code

petersirka avatar Jun 17 '19 07:06 petersirka