elixir-maru / maru

Elixir RESTful Framework
https://maru.readme.io
BSD 3-Clause "New" or "Revised" License
1.32k stars 84 forks source link

Issues with maru/phoenix: ERR_SPDY_PROTOCOL_ERROR #95

Closed mlankenau closed 6 years ago

mlankenau commented 6 years ago

Hi there, I am using maru 0.12.5 in combination with phoenix 1.3.0. On my local machine everything works fine. But on test/production (docker-container, kubernetes, aws alb) I get a lot of net::ERR_SPDY_PROTOCOL_ERROR in Chrome and 'Excess found in a non pipelined read' when doing the failing calls in curl. This is not happening for all request. Some of the routes sometimes work, some never work. The Maru Router is added to phoenix router with a forward (like in Maru Phonix example). Any ideas how to solve that are highly appreciated .

falood commented 6 years ago

I'm working on http2 stuff, will upgrade to plug 1.5 and make cowboy2 adapter works. will let you know when I finished it 🙂

mlankenau commented 6 years ago

I tried with Plug 1.4.5, will try 1.5.0 with the old cowboy later. We have a maru app running, but that one is without phoenix and plug 1.5.0 and works great.

mlankenau commented 6 years ago

I guess you we can close it. It was my fault. I am not 100% sure how I managed to but It was sending two responses at once. It think it was cause by using json() from Phoenix.Controller.