Giter Club home page Giter Club logo

Comments (3)

xthexder avatar xthexder commented on July 17, 2024 1

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.

kvnavaneethan avatar kvnavaneethan commented on July 17, 2024

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.

xthexder avatar xthexder commented on July 17, 2024

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&amp;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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.