Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[leo_gateway] Can't handle http requests when cache.http_cache is set to true also protocol = rest #452

Closed
mocchira opened this issue Mar 1, 2016 · 0 comments

Comments

@mocchira
Copy link
Member

mocchira commented Mar 1, 2016

due to the function signature mismatch like the following.

{{badarity,
  {#Fun<leo_gateway_http_commons.0.25893599>,
       [500,[{<<"connection">>,<<"keep-alive">>},{<<"server">>,<<"Cowboy">>},
             {<<"date">>,<<"Tue, 01 Mar 2016 04:06:13 GMT">>},{<<"content-length">>,"0"}],<<>>,
        {http_req,#Port<0.2155>,ranch_tcp,keepalive,<0.1583.0>,<<"PUT">>,'HTTP/1.1',{{127,0,0,1},42942},
         <<"localhost">>,undefined,8080,<<"/test_oe.txt">>,undefined,<<>>,undefined,[],
         [{<<"user-agent">>,
           <<"curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2">>},
          {<<"host">>,<<"localhost:8080">>},{<<"accept">>,<<"*/*">>},{<<"content-length">>,<<"17">>},
          {<<"content-type">>,<<"application/x-www-form-urlencoded">>}],
         [],undefined,[],waiting,<<"test okadd line 2">>,
         undefined,false,waiting,[],<<>>,already_called}]}},
 [{cowboy_req,response,6,[{file,"src/cowboy_req.erl"},{line,1170}]},
  {cowboy_req,reply_no_compress,8,[{file,"src/cowboy_req.erl"},{line,930}]},
  {cowboy_req,reply,4,[{file,"src/cowboy_req.erl"},{line,885}]},
  {cowboy_req,maybe_reply,2,[{file,"src/cowboy_req.erl"},{line,995}]},
  {cowboy_handler,handler_handle,4,[{file,"src/cowboy_handler.erl"},{line,117}]},
  {cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,435}]}]}
@mocchira mocchira self-assigned this Mar 1, 2016
@mocchira mocchira added this to the 1.2.20 milestone Mar 1, 2016
@mocchira mocchira changed the title [leo_gateway] Can't handle http requests when cache.http_cache is set to true [leo_gateway] Can't handle http requests when cache.http_cache is set to true also protocol = rest Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant