HTML API /rr_connect?password=*** returns 404 Not Found
-
I do have a problem using the HTML API.
I have one board that always reply with 404 Not Found error when i callcurl http://<ip_machine1>/rr_connect?password=<password>
curl : The remote server returned an error: (404) Not Found. At line:1 char:1 + curl http://<ip_machine1>/rr_connect?password=<password> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc eption + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
both machines have HTTP enabled.
M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet
calling other machines with works fine
curl http://<ip_machine2>/rr_connect?password=<password>
StatusCode : 200 StatusDescription : OK Content : {"apiLevel":1,"err":0,"isEmulated":true,"sessionTimeout":8000,"boardType":"duet3mb6xd100"} RawContent : HTTP/1.1 200 OK Content-Length: 90 Content-Type: application/json Date: Tue, 23 Jul 2024 09:55:07 GMT Server: Kestrel {"apiLevel":1,"err":0,"isEmulated":true,"sessionTimeout":8000,"boardType":"... Forms : {} Headers : {[Content-Length, 90], [Content-Type, application/json], [Date, Tue, 23 Jul 2024 09:55:07 GMT], [Server, Kestrel]} Images : {} InputFields : {} Links : {} ParsedHtml : mshtml.HTMLDocumentClass RawContentLength : 90
Is there any other config that might prevent that behavior. I am not aware of significant differences between both machine types.
-
@qurt The affected SBC is outdated and does not support
rr_
protocol emulation yet. Upgrade it usingapt
and then try again. See https://docs.duet3d.com/en/User_manual/Machine_configuration/DSF_RPi#installing-updatesAlso note that it would be better to use the native REST protocol in SBC mode unless you need to deal with boards in standalone mode, too. See https://github.com/Duet3D/DuetSoftwareFramework/wiki/REST-API for further information.