Comments (11)
Yup, seems to work!
I tested various orderings of using proxy/not using proxy (in a Docker container so different tests did not influence each other) and it no longer does the update check every time. Thank you for the hard work!
Now just have to wait for #1531 to land...
from cli.
Thanks for the report. This is supposed to happen infrequently. Will fix.
from cli.
Still happening. Very annoying testing a proxy server getting an extra request on every request.
from cli.
Still happening on the latest version (3.2.2).
While having a periodic update check may be useful, perhaps there could be an option in the config file to disable it entirely?
Either way, the additional request on every invocation makes it significantly harder to use for testing a proxy setup.
Any solution would be appreciated.
from cli.
I tried to reproduce but without success. Can, everyone in this thread, post the debug output so that we can establish the common factor?
from cli.
I can reproduce this still on 3.2.2
. @Ousret To help you reproduce this, can you share what method you're using to detect the request? (I mentioned a couple of example methods in my original post)
from cli.
@Ousret running mitmproxy listening on port 8080.
Running HTTPS_PROXY=http://localhost:8080 https --verify=no get example.com
once results in
Running the same command twice results in
No matter what kind of request I make with HTTPie, it always fires off a check to packages.httpie.io
every time.
Hopefully this is useful.
from cli.
Found the origin of this situation. A fix is available in #1531
To preview it, run the following pip install "git+https://github.com/Ousret/HTTPie.git@feature-tryout-niquests" -U
from cli.
Can you test the patch and report back? If it solved your issue or not.
from cli.
@Ousret well, it's certainly different.
It seems that HTTPie is still issuing the requests, but now doesn't trust the proxy's cert (even with --verify=no
).
from cli.
HTTPie initially set verif=False (v3.x) for fetching latest versions information from the server, the given PR let it (cert verif) by default. If you don't use mitmproxy and the request succeed, it will stop doing it.
Nonetheless, I applied an additional measure that (i) consider a failure sufficient to stop trying (ii) forward the verify argument to it.
You can try to install the patch again, it should be OK now.
from cli.
Related Issues (20)
- Add cli option to generate scriptable or compilable code, or a native executable, that performs the command wherein the option was included
- I got [reports](https://github.com/RageAgainstThePixel/OpenAI-DotNet/issues/236) that this started happening today: HOT 1
- I got [reports](https://github.com/RageAgainstThePixel/OpenAI-DotNet/issues/236) that this started happening today: HOT 1
- ## Acceptance Criteria HOT 1
- it is not possible install for arm linux HOT 4
- Please add support for Mise HOT 1
- conda-forge lists __win as a MatchSpec dependency for httpie=2.2.0 preventing installation on linux-64 HOT 2
- Failed to use {{key}}={{value}} for nested JSON HOT 1
- Online doc error HOT 3
- Ability to define a custom default user-agent in config.json
- Add .netrc support when using --auth-type bearer
- unable to CONTRIBUTING HOT 2
- ### Summary HOT 1
- server HOT 1
- CLI help doesn't show how to launch in a browser! HOT 1
- Automated dependency bump with the latest Deno modules HOT 1
- dnf install httpie not working on CentOS-STREAM9 HOT 1
- JSON properties are shuffled HOT 5
- Embed json in a query string
- Can you add support for multilingual languages?
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 cli.