mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #471] curl http://127.0.0.1:5000?json not working #261
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RamonDonadeu on GitHub (Oct 25, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/471
Problem
(sorry for my last post)
I'm trying to use "curl http://127.0.0.1:5000?json" to get the structure of my dufs container, but it says:
zsh: no matches found: http://127.0.0.1:5000?jsonsame happens with
q="filename"and
?simpleI was expecting a json structure with all the files and folfers of my service.
Configuration
docker run -v
pwd:/data -p 5000:5000 --rm sigoden/dufs /data -ALog
Dufs is not even logging anything
Screenshots/Media
Environment Information
@sigoden commented on GitHub (Oct 25, 2024):
@RamonDonadeu
This means that dufs won't accept any request.
I'm not familiar with zsh, but based on the error message, I suspect it’s an issue with zsh, as it doesn’t seem to be calling dufs at all.
You may wrap the URL in quotes.
Or try running it in another shell, such as bash.
@RamonDonadeu commented on GitHub (Oct 25, 2024):
Yes, it worked in bash!
But as I said in #470, I'm trying to do this call from a .net Backend, and I'm not getting the content of the response... Now I know that it works, I'll keep investigating thanks!
@RamonDonadeu commented on GitHub (Oct 25, 2024):
Nevermind... I found the problem... Thanks anyway!