Closed codezninja closed 1 year ago
Hi @codezninja 👋, thank you for your issue.
Thanks for the response. Love the product btw. Response to the first two bullet points
0.10.7
and confirmed the same behaviorService Url
if you add your basic auth information ping will work correctly. Looking through the code base the library being used supports that under the hood. So instead of http://localhost:6789
users can add http://{username}:{password}@localhost:6789
so my proposal is that we add a checkbox saying use the username and password field for auth. url = app.url
if(app.use_auth_for_ping):
url = `${app.username}:${app.password}@${app.url}`
const response = await fetch(`/api/modules/ping?url=${encodeURI(url)}`);
I'll open a PR in the meantime to document the current workaround for nzbget
Thanks for the response. Love the product btw. Response to the first two bullet points
- I have updated my image to the latest version
0.10.7
and confirmed the same behavior- So the current workaround I found is that in the
Service Url
if you add your basic auth information ping will work correctly. Looking through the code base the library being used supports that under the hood. So instead ofhttp://localhost:6789
users can addhttp://{username}:{password}@localhost:6789
so my proposal is that we add a checkbox saying use the username and password field for auth.url = app.url if(app.use_auth_for_ping): url = `${app.username}:${app.password}@${app.url}` const response = await fetch(`/api/modules/ping?url=${encodeURI(url)}`);
I'll open a PR in the meantime to document the current workaround for nzbget
I think this is an extremely edge case and it doesn't need to be implemented in the code.
If setting the internal address to http://{username}:{password}@localhost:6789
works, let's just add a mention about it in the docs. Adding a whole new set of conditional options isn't worth it for the number of people who will encounter the same issue. If you want to open a PR please do so on the ajnart/homarr-docs repository 😉 (you can browse the docs for a nice place to put it and press the "edit page" at the bottom)
I think this is an extremely edge case and it doesn't need to be implemented in the code.
I agree. Feel free to document this though
https://github.com/ajnart/homarr/issues/559#issue-1527939422
Thank you so much for this! I was going crazy why i was getting a 401 from nzbget
Environment
Docker
Version
0.10.4
Describe the problem
When using the nzb module. The ping fails if you are using the default auth setting with nzbget. Users have to use to set
FormAuth: Yes
.Additional info
No response
Please tick the boxes