Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    HTML API /rr_connect?password=*** returns 404 Not Found

    Scheduled Pinned Locked Moved
    Duet Web Control
    2
    2
    116
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • qurtundefined
      qurt
      last edited by

      I do have a problem using the HTML API.
      I have one board that always reply with 404 Not Found error when i call curl 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.

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @qurt
        last edited by chrishamm

        @qurt The affected SBC is outdated and does not support rr_ protocol emulation yet. Upgrade it using apt and then try again. See https://docs.duet3d.com/en/User_manual/Machine_configuration/DSF_RPi#installing-updates

        Also 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.

        Duet software engineer

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA