Skip to content

No connection (fresh/new install on windows) #1512

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

Open
mentalllyAFK opened this issue Apr 29, 2025 · 11 comments
Open

No connection (fresh/new install on windows) #1512

mentalllyAFK opened this issue Apr 29, 2025 · 11 comments
Assignees
Labels
os: windows windows compatibility priority 2: medium Default for bugs type: bug something isn't working

Comments

@mentalllyAFK
Copy link

mentalllyAFK commented Apr 29, 2025

Metadata (please complete the following information)
Version: 4.10.0
OS: Windows 11
Shell: git bash

Describe the bug
Can't watch anything "No results found!"
can't use ani-cli -U "Connection error"

Steps To Reproduce

  1. try to watch something or update

Screenshots (if applicable; you can just drag the image onto github. remove the following line if not needed)
Image

@mentalllyAFK mentalllyAFK added priority 2: medium Default for bugs type: bug something isn't working labels Apr 29, 2025
@71zenith 71zenith added the os: windows windows compatibility label Apr 29, 2025
@ykhan21
Copy link
Collaborator

ykhan21 commented May 1, 2025

  1. Are you using Windows Terminal? Can you follow the Windows guide here and change the starting directory to your home folder?

  2. What is the output of curl https://allmanga.to/? Does curl -k https://allmanga.to/ work instead?

@mentalllyAFK
Copy link
Author

I'm using git bash; I set this up using the windows guide to begin with. My starting directory for it is $USERPROFILE%

Image

@ykhan21
Copy link
Collaborator

ykhan21 commented May 1, 2025

The starting directory should be %USERPROFILE%, not $USERPROFILE%.

If it is set up correctly, the starting directory would be your home folder, not /c/WINDOWS/system32, a system folder.

Can you share screenshots of your Git Bash Terminal profile configuration and the output of echo $USERPROFILE.

It looks like your network firewall or antivirus is blocking curl requests to allmanga.to.

See what -k does: https://www.mankier.com/1/curl#-k

You can try to tweak your anti-virus to allow it.
A bandage fix would be to run alias curl='curl -k' before ani-cli.

@ykhan21
Copy link
Collaborator

ykhan21 commented May 1, 2025

You could also replace all the curl commands with curl -k in the script at C:\Users\USERNAME\scoop\apps\ani-cli\current\ani-cli.
You'll have to redo this every update.

@71zenith
Copy link
Collaborator

71zenith commented May 1, 2025

where did you install curl from? please attach the output of curl --version

@ykhan21
Copy link
Collaborator

ykhan21 commented May 1, 2025

@71zenith, there have been several issues just like this.
See #1471.

@mentalllyAFK
Copy link
Author

I haven't checked the antivirus yet, but curl = 'curl -k' didn't bandage it (didn't try it in the script yet). I've also included the settings screenshot and curl --version for zenith.

Image

Image

@ykhan21
Copy link
Collaborator

ykhan21 commented May 1, 2025

Did editing the starting directory work?

@71zenith
Copy link
Collaborator

71zenith commented May 1, 2025

Can you try installing curl from scoop and running

@mentalllyAFK
Copy link
Author

Editing the starting directory worked :)
should I still install curl from scoop?

@ykhan21
Copy link
Collaborator

ykhan21 commented May 2, 2025

Try it to check if it solves your problem.

To be sure that curl is used from scoop instead of Git Bash, which curl should provide a scoop path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows windows compatibility priority 2: medium Default for bugs type: bug something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants