Comments (3)
What you're doing should work fine. The log messages are all expected, though maybe they could be changed to be a little less worrying.
Basically what the logs are saying is that a client is connecting to the server, and then the server is closing the connection, which is expected with HTTP after requests are finished.
In the logs you posted, data is getting through to the server (517 bytes), so assuming your https client is working, you should have no issues.
If you're getting errors in your browser or app when trying to connect to https, then you can post that and I can see if I can help.
from toxiproxy.
Thanks for responding.
I try to run the following curl command, and it returns couldn't connect to host (7) error.
Which , I think means, it wasn't able to connect to the proxy that was set up for port 443.
curl -k -X GET -H "X-Api-Version:300" -H "auth:LTQxNzQxMjQ4MDU0HyBcwZcNgCoxbvoYY093KrbiBlaJhyTe" -H "Content-Type: application/json" -H "Accept: application/json" https://localhost/rest/server-hardware/32363636-3138-5355-4533-313833354C53
curl: (7) couldn't connect to host
from toxiproxy.
Https works fine for me:
# toxiproxy-cli c -l :443 -u google.com:443 google
Created new proxy google
# curl -k -H "Host: google.com" https://localhost/
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="https://www.google.ca/?gfe_rd=cr&ei=47sHWPvGKoaN8QfM-ZOQCw">here</A>.
</BODY></HTML>
Can you try netstat -l
and check to see if the proxy is actually listening on the port?
toxiproxy-cli inspect
might also be useful to see if the proxy is created properly.
from toxiproxy.
Related Issues (20)
- Unable to connect to RDS Aurora SQL DB via ToxiProxy server HOT 10
- is it possible to use ssh to connect to toxiproxy with a SSH server as backend. HOT 5
- Fails to connect after peer-reset HOT 6
- ToxiproxyContainer.ContainerProxy deprecated HOT 3
- How to proxy MTLS connections using Toxiproxy HOT 1
- Create a toxic, connection loss, for Server --> Client ( donwstream)? HOT 13
- Migrate the GH default branch to main HOT 1
- Reopen all the PRs that were closed unintentionally because of master -> main rename HOT 2
- RemoveToxic: HTTP 503: Unexpected response code, expected 204 HOT 5
- Possible to add toxics in config? HOT 1
- non-local API server connection refused when using '-config' HOT 1
- Dynamic / Conditional Toxics? HOT 2
- Tag and release v2.6.0? HOT 2
- panic: runtime error: slice bounds out of range [808:773]
- Difficulty Implementing Proxy for OpenAI API with App Calling and curl Insufficiency
- Proxy does not foward custom HTTP headers
- Unable to update toxic using prebuilt windows server
- Documentation for distribution of latency with different jitter values
- Is Redis Cluster/ PostGresDB Connection(based on master/slave architecture) supported for ToxiProxy ?
- Toxiproxy control port hangs on removing a toxic HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toxiproxy.