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

[BUG] wget: Prusalink needs to athenticate twice #507

Open
emc02 opened this issue Sep 11, 2024 · 0 comments
Open

[BUG] wget: Prusalink needs to athenticate twice #507

emc02 opened this issue Sep 11, 2024 · 0 comments

Comments

@emc02
Copy link

emc02 commented Sep 11, 2024

I found this issue on trying to get data to visualize it with my Loxone SmartHome.
Any attempt to get data from PrusaLink API failed, except for retrieving the the index.html.

Example wget to api
wget http://maker:*password*@192.168.1.192/api/job
--2024-09-11 14:20:17-- http://maker:*password*@192.168.1.192/api/job
Connecting to 192.168.1.192:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Digest realm="Printer API", nonce="33e1737e000065bd", stale=false
Reusing existing connection to 192.168.1.192:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: 'job.2'

Example wget to index.html
wget http://maker:*password*@192.168.1.192
--2024-09-11 14:20:30-- http://maker:*password*@192.168.1.192/
Connecting to 192.168.1.192:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7211 (7.0K) [text/html]
Saving to: 'index.html.1'

This issue is maybe related to #3287 and other duplicates of it.

On normal browser this does not matter, because it retries and on second attempt it's working. Unfortunately Loxone is only trying once and therefore it fails everytime.
But I think it's a bug in Prusa-Link.

Thanks in advance!

@emc02 emc02 changed the title wget Prusalink needs to athenticate twice wget: Prusalink needs to athenticate twice Sep 11, 2024
@emc02 emc02 changed the title wget: Prusalink needs to athenticate twice [BUG] wget: Prusalink needs to athenticate twice Sep 11, 2024
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

1 participant