tldr-python-client icon indicating copy to clipboard operation
tldr-python-client copied to clipboard

Error fetching from tldr: <urlopen error [Errno 104] Connection reset by peer>

Open h1zardian opened this issue 1 year ago • 5 comments

  • I have already seen the closed issue similar to this topic.

In my case some options work while some don't. Screenshot from 2023-03-17 16-06-30

OS: Fedora Workstation 37

Tested both pip install tldr and dnf install tldr both results in the same behaviour.

h1zardian avatar Mar 17 '23 10:03 h1zardian

This is most likely an issue on your network from what I can tell.

Can you run this command curl https://raw.githubusercontent.com/tldr-pages/tldr/master/pages/common/ls.md and paste the output.

Also check if the website loads in your web browser.

CleanMachine1 avatar Apr 03 '23 20:04 CleanMachine1

curl https://raw.githubusercontent.com/tldr-pages/tldr/master/pages/common/ls.md result: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

0xSunsetJe3us avatar Jun 19 '23 12:06 0xSunsetJe3us

This is a problem with your network, not tldr

CleanMachine1 avatar Jun 19 '23 18:06 CleanMachine1

I'm guessing from your Github location, you are located in China, which I believe has some bans on Github's services, you may want to change some code to find a github mirror which isn't banned.

CleanMachine1 avatar Jun 19 '23 18:06 CleanMachine1

For me curl works as expected but I get the error when I try using tldr for a page it doesn't have stored already.

Output from curl https://raw.githubusercontent.com/tldr-pages/tldr/master/pages/common/sed.md

# sed

> Edit text in a scriptable manner.
> See also: `awk`, `ed`.
> More information: <https://www.gnu.org/software/sed/manual/sed.html>.

- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and print the result to `stdout`:

`{{command}} | sed 's/apple/mango/g'`

- Execute a specific script [f]ile and print the result to `stdout`:

`{{command}} | sed -f {{path/to/script.sed}}`

- Print just a first line to `stdout`:

`{{command}} | sed -n '1p'`

Output from tldr sed

Error fetching from tldr: <urlopen error [Errno 104] Connection reset by peer>

I've installed tldr via yay. Version tldr 3.2.0 (Client Specification 1.5)

lemonnuggets avatar Nov 26 '23 16:11 lemonnuggets