-
Notifications
You must be signed in to change notification settings - Fork 39
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
how to configure a proxy? #33
Comments
I believe some provisional proxy support is available upstream in the AWS CRT but we'll have to expose and forward that configuration within the context of this library or read from the env vars. Marking as a feature request. |
Hi @juanmol, the AWS CRT has added provisional support for If you get a moment to check this out, we'd be interested to know if this solves your issues. Thanks! |
Hi, I'm trying to use my company's internal proxy, and it doesn't seem like those environment variables are being picked up. I'm using Windows (aws_transcribe=0.5.2, awscrt=0.13.5), and have the following environment variables set:
When I run the code here, I get
I've tried modifying
|
Hi @YichiRockyZhang, Thanks for the detailed findings! So this looks like we have something strange going on in the CRT that we may not have control over in the SDK. If you don't include the proxy options, do you get the same failure at wrap_future with your test function? If not, we may need to open a awscrt repository for a deeper inspection. |
Thanks for the quick response @nateprewitt! When I omit |
Yep, completely agree. Would you mind following up in an issue with the CRT team for the second issue? Once we have an idea of why that's dumping we can look at getting HttpProxyOptions integrated here. |
I've submitted the issue on their side and looking to hear back. Thank you again for the support! |
awscrt did add support for config proxy from environment variables from the native code. However, it's turned off by default. https://github.com/awslabs/aws-c-http/blob/main/include/aws/http/proxy.h#L39, as we don't want to break the default behavior before the support. So, to properly support proxy configuration from environment variable support, it's gonna be a feature request for awscrt to expose the settings and used from this package. |
Hi @TingDaoK , any update on the proxy issue, I am facing similar issue where its not picking up the proxy environment variables to test the aws transcribe streaming. |
hi!, i have test the example app without problems in a server with direct connection to internet (without proxy). I need to get it working on other server with proxy. In this server, if i do a wget to the endpoint, i can see the traffic throught the proxy, but if i run the python script, i can't see anything on the proxy server.
I had test in other server with a diferent proxy, and can't get it working again. How can i configure proxy for this? I have this messages:
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_IO_SOCKET_TIMEOUT', message='socket operation timed out.', code=1048)
or
awscrt.exceptions.AwsCrtError: AwsCrtError(name='AWS_IO_SOCKET_NO_ROUTE_TO_HOST', message='socket connect failure, no route to host.', code=1049)
For enviroment test, i had configurated
http_proxy
andhttp_proxy
The text was updated successfully, but these errors were encountered: