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

    Your Duet rejected the HTTP request

    Scheduled Pinned Locked Moved Solved
    Firmware installation
    4
    12
    884
    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.
    • Pyperundefined
      Pyper
      last edited by

      I am trying to use the Duet 2 wifi for the first time. I have connected via YAT and it says I have firmware version 2.0. I need to upgrade but I can't connect via my web browser. The duet is on the wifi and I can see what the address is with M552. But when I go to the address it says "Your Duet rejected the HTTP request". How do I fix that?

      droftartsundefined dc42undefined 2 Replies Last reply Reply Quote 1
      • droftartsundefined
        droftarts administrators @Pyper
        last edited by

        @pyper Can you send M115 and copy the response from YAT so we know the exact firmware version?

        You usually get that message when the files in the www folder on the SD card can't be read, either because they are missing or corrupt. Probably the easiest thing to do is put the SD card in your PC, delete the /www folder. Find the matching firmware version (from the M115 command) on Github: https://github.com/Duet3D/RepRapFirmware/releases

        Find the 'DuetWebControl' zip file that matches your firmware. eg if you are using RRF 2.0, this file should work fine: https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/DuetWebControl-SD-2.0.7.zip

        Download this, extract it on your PC, and copy the contents to the SD card, in a new /www folder. Then try it in your Duet. If that still doesn't work, have a look at the SD card troubleshooting: https://duet3d.dozuki.com/Wiki/SD_Card#Section_Troubleshooting_SD_Card_issues

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        Pyperundefined 1 Reply Last reply Reply Quote 0
        • dc42undefined
          dc42 administrators @Pyper
          last edited by

          @pyper said in Your Duet rejected the HTTP request:

          But when I go to the address it says "Your Duet rejected the HTTP request"

          What's the rest of the text on that page? RRF doesn't return that text by itself.

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          Pyperundefined 1 Reply Last reply Reply Quote 0
          • Pyperundefined
            Pyper @dc42
            last edited by

            @dc42
            The complete message is "Your Duet rejected the HTTP request: page not found"

            1 Reply Last reply Reply Quote 1
            • Pyperundefined
              Pyper @droftarts
              last edited by

              @droftarts
              Thank you for helping.

              M115 returns "FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 2.0(RTOS) ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2018-06-05b3<LF>ok<LF>"

              I downloaded the RRF2.0 link you posted, deleted the existing www folder, and created a new one with the DuetWebControl-SD-2.07.zip files.

              I still get the same error. Not sure what is going on.

              I formatted the SD card with the suggested utility to FAT32.

              Arg!

              droftartsundefined 1 Reply Last reply Reply Quote 1
              • droftartsundefined
                droftarts administrators @Pyper
                last edited by droftarts

                @pyper that’s very old firmware on a Duet. Did you buy it recently? Where from?

                What specification is the SD card you’re using? Please send M122 with the card in the Duet, and post the full response. Before you do that, remember to set the line ending to LF in YAT, or the response will be truncated and barely readable; see https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7#s7

                Edit: also send

                M20 P"/www"
                

                to list the contents of the www folder.

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                Pyperundefined 1 Reply Last reply Reply Quote 0
                • Pyperundefined
                  Pyper @droftarts
                  last edited by

                  @droftarts
                  I think they bought this awhile back but are only just now getting around to installing it.

                  Well, I keep trying to post the contents from those commands but it gets flagged as spam or something..

                  droftartsundefined 1 Reply Last reply Reply Quote 1
                  • droftartsundefined
                    droftarts administrators @Pyper
                    last edited by

                    @pyper I’ve upvoted some of your posts which should give you enough reputation to post the long responses.

                    Ian

                    Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                    Pyperundefined 1 Reply Last reply Reply Quote 0
                    • Pyperundefined
                      Pyper @droftarts
                      last edited by Pyper

                      @droftarts
                      Thank you
                      M122:

                      === Diagnostics ===
                      RepRapFirmware for Duet 2 WiFi/Ethernet version 2.0(RTOS) running on Duet WiFi 1.02 or later
                      Board ID: 08DJM-9178L-L2MS8-6JKF0-3SN6Q-TTFYR
                      Used output buffers: 2 of 20 (2 max)
                      === RTOS ===
                      Static ram: 28380
                      Dynamic ram: 95820 of which 16 recycled
                      Exception stack ram used: 236
                      Never used ram: 6620
                      Task NETWORK ready, free stack 1440
                      Task HEAT blocked, free stack 1264
                      Task MAIN running, free stack 3656
                      === Platform ===
                      Last reset 00:00:28 ago, cause: reset button or watchdog
                      Last software reset details not available
                      Error status: 0
                      Free file entries: 10
                      SD card 0 detected, interface speed: 20.0MBytes/sec
                      SD card longest block write time: 0.0ms
                      MCU temperature: min 31.0, current 31.6, max 31.7
                      Supply voltage: min 1.6, current 1.7, max 1.7, under voltage events: 0, over voltage events: 0
                      Driver 0: ok, SG min/max not available
                      Driver 1: ok, SG min/max not available
                      Driver 2: ok, SG min/max not available
                      Driver 3: ok, SG min/max not available
                      Driver 4: ok, SG min/max not available
                      Date/time: 1970-01-01 00:00:00
                      Slowest loop: 1.08ms; fastest: 0.06ms
                      === Move ===
                      Hiccups: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm 240, MaxWait: 0ms, Underruns: 0, 0
                      Scheduled moves: 0, completed moves: 0
                      Bed compensation in use: none
                      Bed probe heights: 0.000 0.000 0.000 0.000 0.000
                      === Heat ===
                      Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
                      === GCodes ===
                      Segments left: 0
                      Stack records: 1 allocated, 0 in use
                      Movement lock held by null
                      http is idle in state(s) 0
                      telnet is idle in state(s) 0
                      file is idle in state(s) 0
                      serial is ready with "M122" in state(s) 0
                      aux is idle in state(s) 0
                      daemon is idle in state(s) 0
                      queue is idle in state(s) 0
                      autopause is idle in state(s) 0
                      Code queue is empty.
                      === Network ===
                      Slowest loop: 14.31ms; fastest: 0.01ms
                      Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
                      HTTP sessions: 0 of 8
                      - WiFi -
                      Network state is running
                      WiFi module is connected to access point 
                      Failed messages: pending 0, notready 0, noresp 0
                      WiFi firmware version 1.21
                      WiFi MAC address bc:dd:c2:57:ae:e6
                      WiFi Vcc 3.32, reset reason Turned on by main processor
                      WiFi flash size 4194304, free heap 16704
                      WiFi IP address 10.1.10.172
                      WiFi signal strength -48dBm, reconnections 0, sleep mode modem
                      Socket states: 0 0 0 0 0 0 0 0
                      === Expansion ===
                      ok
                      
                      

                      M20 P"/www":

                      Begin file list
                      css
                      favicon.ico.gz
                      fonts
                      index.html.gz
                      js
                      End file list
                      ok
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • Phaedruxundefined
                        Phaedrux Moderator
                        last edited by

                        Try replacing the contents of /www on the SD card with the contents of this zip file: https://github.com/Duet3D/RepRapFirmware/releases/download/2.01/DuetWebControl-1.22.3.zip

                        Then see if you can reach the IP address.

                        If that works, Upload these 3 zip files, one at a time in the system tab in DWC. Don't extract them. Reboot after each. Use M115 to verify the firmware has been applied.
                        https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2Firmware-2.05.1.zip
                        https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip
                        https://github.com/Duet3D/RepRapFirmware/releases/download/3.2.2/Duet2and3Firmware-3.2.2.zip
                        That will get your firmware and DWC up to date.

                        You can see the change logs here:
                        https://github.com/Duet3D/RepRapFirmware/wiki/Changelog-RRF-3.x

                        For your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
                        https://configtool.reprapfirmware.org/Start

                        Backup your existing config files in the sys folder in case you want to switch back to RRF3. IT’s easy to switch back and forth, just upload the zip file for the version you want and then upload your config files.

                        These documents will come in handy during the conversion.
                        https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview
                        https://duet3d.dozuki.com/Wiki/Gcode

                        Z-Bot CoreXY Build | Thingiverse Profile

                        Pyperundefined 1 Reply Last reply Reply Quote 0
                        • Pyperundefined
                          Pyper @Phaedrux
                          last edited by

                          @phaedrux
                          Success!
                          Thank you so much (all)!
                          I can confirm M115 returns 3.2.2 in YAT
                          Onward!

                          droftartsundefined 1 Reply Last reply Reply Quote 1
                          • droftartsundefined
                            droftarts administrators @Pyper
                            last edited by

                            @pyper That's good to hear. Thinking about it, RRF 2.0 probably doesn't support DWC 2.0.7. My bad!

                            Ian

                            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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