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

    Odd Javascript Error causing connection failure

    Scheduled Pinned Locked Moved
    Duet Web Control
    2
    10
    392
    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.
    • SamanthaJaneyCakeundefined
      SamanthaJaneyCake
      last edited by

      Hi,
      Just loaded up the printer to start configuring some stuff and it's thrown the following error at me. It didn't the previous times I booted up but this is the first boot with the bed connected. This error causes repeat failure of connection.

      A JavaScript error has occurred so the web interface has closed the connection to your board. It is recommended to reload the web interface now. If this happens again, please contact the author and share this error message:
      
      Version: 1.22.6
      Message: TypeError: undefined is not an object (evaluating 'lastStatusResponse.temps.current[heater].toFixed')
      URL: http://192.168.0.74/js/dwc.js
      Line: 4468:74
      Error object: {}
      

      Running on a Duet 2 Wifi w/ Duex5. Thanks for the help!

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        i think you're using an old version of DWC with a new version of firmware. DWC 1.22.6 is ancient and won't work well with RRF2 or RRF3.

        Can you provide the results of M122?

        Z-Bot CoreXY Build | Thingiverse Profile

        SamanthaJaneyCakeundefined 1 Reply Last reply Reply Quote 0
        • SamanthaJaneyCakeundefined
          SamanthaJaneyCake @Phaedrux
          last edited by

          @phaedrux Damn, really? I remember setting this up only a few months ago and everything seemed to be doing okay.

          M122 reports RRF V3.0.

          I'll look into updating DWC now

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            If you still have access to DWC. Upload these 3 zip files, one at a time in the system tab. Don't extract them first. Reboot after each. Use M115 in the gcode console 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.3/Duet2and3Firmware-3.3.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 RRF2. 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

            1 Reply Last reply Reply Quote 1
            • SamanthaJaneyCakeundefined
              SamanthaJaneyCake
              last edited by

              @phaedrux Thanks for the help. I'm needing to do a full config for everything anyway but need access to DWC first!

              Which I can't currently do. Is there a Gcode command I can send in via PanelDue to automate get-latest or do I have to extract the SD and copy directly onto there?

              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                In this case you should probably just pull the SD card and then extract this zip file into the WWW folder.

                https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/DuetWebControl-SD-2.0.7.zip

                Then you should be able to reach DWC again and can upload the files as described above.

                Z-Bot CoreXY Build | Thingiverse Profile

                SamanthaJaneyCakeundefined 1 Reply Last reply Reply Quote 0
                • SamanthaJaneyCakeundefined
                  SamanthaJaneyCake @Phaedrux
                  last edited by SamanthaJaneyCake

                  @phaedrux

                  I got the DWC onto the SD and got it working so thank you!
                  Started trying to upload the firmware starting with 2.05.1 and got this error upon trying to restart to implement files:

                  M997 S0:1
                  Error: Firmware binary "Duet2CombinedFirmware.bin" is not valid for this electronics
                  

                  Running M115 afterwards shows it hasn't changed. I had assumed that the relevant files had gone through regardless and the irrelevant failed but I take it that's not the case?

                  EDIT: According to here I need to rename the firmware bin file. I'm trying that now, bear with me 🙂

                  EDIT: Aaaaand now I can't connect at all. M552 says wifi module is being started. That doesn't change. Wifi LED off, IP not showing on portal. Damn.

                  1 Reply Last reply Reply Quote 0
                  • SamanthaJaneyCakeundefined
                    SamanthaJaneyCake
                    last edited by

                    New day, new problems. Looks like trying to follow those steps last night threw my wifi module out of sync with the firmware... Now I'm looking into how to fix that...

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      Did you upload the zip file as is? Without extracting it first?

                      Can you send M122 from a USB terminal and post the results? Then we can see what firmware versions are installed and can give guidance from there.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      SamanthaJaneyCakeundefined 1 Reply Last reply Reply Quote 0
                      • SamanthaJaneyCakeundefined
                        SamanthaJaneyCake @Phaedrux
                        last edited by

                        @phaedrux Hello again! I ended up doing a complete fresh reinstall from the configurator then made sure I was using the latest stable release.

                        Good news is I am now connected to DWC 3.3.0, bad news is I have a new issue here.

                        M122 printout is being flagged as spam by Akismet. I will try and snippet the relevant.

                        M122
                        === Diagnostics ===
                        RepRapFirmware for Duet 2 WiFi/Ethernet version 3.0 running on Duet WiFi 1.02 or later + DueX5
                        
                        ...
                        
                        Error status: 0
                        
                        ...
                        
                        === Network ===
                        Slowest loop: 15.22ms; fastest: 0.00ms
                        Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
                        HTTP sessions: 1 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.26
                        WiFi MAC address 48:3f:da:75:a8:d7
                        WiFi Vcc 3.36, reset reason Turned on by main processor
                        WiFi flash size 4194304, free heap 26024
                        WiFi IP address 192.168.0.74
                        WiFi signal strength -63dBm, reconnections 0, sleep mode unknown
                        Socket states: 0 0 0 0 0 0 0 0
                        
                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA