[GH-ISSUE #471] curl http://127.0.0.1:5000?json not working #261

Closed
opened 2026-04-08 16:51:34 +03:00 by zhus · 3 comments
Owner

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?json
same happens with q="filename"
and ?simple
I 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 -A

Log

Dufs is not even logging anything

Screenshots/Media

Captura de pantalla 2024-10-25 a las 11 33 00

Environment Information

  • Dufs version: latest I suppose
  • Browser/Webdav info: MacOs Terminal
  • OS info: Docker container, on MacOs
  • Proxy server (if any): none
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?json` same happens with `q="filename"` and `?simple` I 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 -A **Log** Dufs is not even logging anything **Screenshots/Media** ![Captura de pantalla 2024-10-25 a las 11 33 00](https://github.com/user-attachments/assets/cb116db6-4930-4cfc-b0e7-98040df3e826) <!-- If applicable, add screenshots or videos that help illustrate the issue, especially for WebUI problems. --> **Environment Information** - Dufs version: latest I suppose - Browser/Webdav info: MacOs Terminal - OS info: Docker container, on MacOs - Proxy server (if any): none
zhus closed this issue 2026-04-08 16:51:34 +03:00
Author
Owner

@sigoden commented on GitHub (Oct 25, 2024):

@RamonDonadeu

Dufs is not even logging anything

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.

dufs 'http://127.0.0.1:5000?json'

Or try running it in another shell, such as bash.

# in bash
dufs http://127.0.0.1:5000?json
<!-- gh-comment-id:2437373265 --> @sigoden commented on GitHub (Oct 25, 2024): @RamonDonadeu > Dufs is not even logging anything 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. ``` dufs 'http://127.0.0.1:5000?json' ``` Or try running it in another shell, such as bash. ``` # in bash dufs http://127.0.0.1:5000?json ```
Author
Owner

@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!

<!-- gh-comment-id:2437388584 --> @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!
Author
Owner

@RamonDonadeu commented on GitHub (Oct 25, 2024):

Nevermind... I found the problem... Thanks anyway!

<!-- gh-comment-id:2437403426 --> @RamonDonadeu commented on GitHub (Oct 25, 2024): Nevermind... I found the problem... Thanks anyway!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#261