OptimalBits/redbird

GET works, POST doesn't

mjp0 opened this issue · 1 comments

mjp0 commented

I'm running into the weirdest bug with redbird.

I have configured a pretty basic route: proxy.register("http://foo.bar/u", "http://user-service:7777")

If I send GET http://foo.bar/u/info, I get a correct 200 response code.
If I send POST http://foo.bar/u/receiver, I get incorrect 404 response code.
If I send GET http://foo.bar/u/receiver, I get 401 which is a correct response code.
If I send POST http://user-service:7777/receiver, I get the correct 200 response code.

So, for some reason, POST doesn't work correctly through redbird. user-service is a standard nodejs/expressjs server. What makes this even weirder is that I can see from expressjs logs that it does receive POST to /receiver. There must be something I'm missing.

I've been trying to debug this whole day and I just can't figure it out. Any ideas?

mjp0 commented

Got this to work. I don't know how or why exactly but it's working now... Closing this.