Skip to content
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

Error: TypeError: fetch failed #1

Open
lidel opened this issue Dec 16, 2022 · 1 comment
Open

Error: TypeError: fetch failed #1

lidel opened this issue Dec 16, 2022 · 1 comment

Comments

@lidel
Copy link

lidel commented Dec 16, 2022

With Kubo 0.18.0-rc1 on port 5001:

$ docker run --rm -it --net=host whizzzkid/yt-dl-ipfs:lates
....
? Enter YouTube URL: https://www.youtube.com/watch?v=1-Uz0LMbWpI
✔ Found Tolkien explains why the Fellowship didn't fly the Eagles to Mordor
✔ Downloaded Complete!
✖ Error: TypeError: fetch failed

😿

@whizzzkid am I doing something wrong?

@whizzzkid
Copy link
Owner

whizzzkid commented Dec 16, 2022

@lidel do you have ipfs api running on port 5001? If it's running elsewhere you can provide an environment variable IPFS_API_URL, It needs that. I think I should add a docker compose file, which brings up IPFS too.

Edit: I just noticed you have Kubo 18rc1, I tried it with 17, the one that ships with desktop and it works fine. Wondering if ipfs-http-client breaks with 18rc1.

Also, why do you need to supply --net=host it should have access to the same network docker has access to. Can you try building node to see if that works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants