SOLVED Your Duet rejected the HTTP request
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?
@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
The complete message is "Your Duet rejected the HTTP request: page not found"
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.
@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
to list the contents of the www folder.
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..
@pyper I’ve upvoted some of your posts which should give you enough reputation to post the long responses.
Pyper last edited by Pyper
=== 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
Begin file list css favicon.ico.gz fonts index.html.gz js End file list ok
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.
That will get your firmware and DWC up to date.
You can see the change logs here:
For your config, might be a good idea to run through the configurator tool and generate a fresh set for RRF3.
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.
Thank you so much (all)!
I can confirm M115 returns 3.2.2 in YAT
@pyper That's good to hear. Thinking about it, RRF 2.0 probably doesn't support DWC 2.0.7. My bad!