envoy proxy returning 404 for any request

1,785 views
Skip to first unread message

Gunjan Korlekar

unread,
Oct 17, 2017, 2:50:19 PM10/17/17
to envoy-users
Hi folks,

Kinda new to envoy so this might be a trivial thing that I am missing. But need some help on this.

I am running envoy v1.4.0 on a Debian 8 (Jessie) system. I was playing around with it and was running envoy with the google_proxy stock config - https://github.com/envoyproxy/envoy/blob/v1.4.0/configs/google_com_proxy.json

However when I issue a curl request to google through envoy using  "curl -v -x http://localhost:10000 -L www.google.com". I always get a 404 from envoy no matter what the request. A normal curl request works fine.

Here is what I see in the envoy debug logs -
[2017-10-17 18:40:53.902][2573][info][main] source/server/connection_handler_impl.cc:128] [C4] new connection
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:171] [C4] new stream
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:425] [C4][S3] request headers complete (end_stream=true):
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:430] [C4][S3]   'user-agent':'curl/7.38.0'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:430] [C4][S3]   ':authority':'www.google.com'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:430] [C4][S3]   'accept':'*/*'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:430] [C4][S3]   'proxy-connection':'Keep-Alive'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:430] [C4][S3]   ':path':'HTTP://www.google.com/'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:430] [C4][S3]   ':method':'GET'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:777] [C4][S3] encoding headers via codec (end_stream=true):
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:782] [C4][S3]   ':status':'404'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:782] [C4][S3]   'date':'Tue, 17 Oct 2017 18:40:53 GMT'
[2017-10-17 18:40:53.903][2573][debug][http] source/common/http/conn_manager_impl.cc:782] [C4][S3]   'server':'envoy'
[2017-10-17 18:40:53.906][2573][debug][connection] source/common/network/connection_impl.cc:433] [C4] remote close
[2017-10-17 18:40:53.906][2573][debug][connection] source/common/network/connection_impl.cc:160] [C4] closing socket: 0


Can someone help me figure what is it that could be going wrong here? Thanks in advance!

-Gunjan

Matt Klein

unread,
Oct 17, 2017, 4:40:56 PM10/17/17
to Gunjan Korlekar, envoy-users
By default Envoy does not support absolute URIs. I'm not sure why you are specifying '-L'?  See the 'allow_absolute_url' option here: https://envoyproxy.github.io/envoy/configuration/http_conn_man/http_conn_man.html. It might work.

--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users+unsubscribe@googlegroups.com.
To post to this group, send email to envoy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/884b4f6d-b83d-4dd4-9f0f-b47af94f59b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Gunjan Korlekar

unread,
Oct 17, 2017, 7:24:54 PM10/17/17
to Matt Klein, envoy-users
Thanks for pointing to that! allow_absolute_url is what was missing. -L was out of habit (for redirects).

-Gunjan
--

Dialpad
Gunjan Korlekar
Software Engineer


Dialpad | UberConference
CONNECT EVERYONE. WORK ANYWHERE.
Deloitte's Technology Fast 500
Reply all
Reply to author
Forward
0 new messages