Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. odd behavior downloading from data loggers

odd behavior downloading from data loggers

Scheduled Pinned Locked Moved The Lounge
androidsysadminlinuxtestingbeta-testing
6 Posts 2 Posters 0 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    JRickey
    wrote on last edited by
    #1

    I'm revisiting an issue we had three years ago and wondered whether anyone here might have suggestions of possible causes (with testing ideas if possible). We have a work-around but my curious mind has not been satisfied. At work we use some temperature and humidity data loggers. The units (model iTHX-SD) are accessed via ethernet and have a web server that allows the user to download data covering a day, week, month or year, saving to a text/csv file. In Oct. 2019 our weekly downloads using Chrome stopped working (around the same time Chrome 78.0.3904 was released). Chrome's download would show "Failed - No File." Facts and testing from around that time showed: 1. The issue occurred the same week at two different facilities and with various computers, including Chrome on Win 10, Win 7, Linux and Android phone. Note, though, that only one computer attempted (and succeeded) to access the data the prior week. 2. Firmware for the loggers had not changed. 3. We could download a day's worth of data, but not a week's worth. Previously we had no trouble downloading a year's worth of data. 4. Firefox and Edge can download the data (our work-around). 5. Chrome, IE and Opera failed to download the data, with Opera reporting that the download was interrupted. (IE and Opera were not used for this prior to this test, so no idea how they 'previously' behaved.) 6. In April 2020 I tried downloading a year's worth of data with Chrome 81.0.4044 and the progress bar showed 28.4/28.4 MB for a fraction of a second before showing Failed - No File. 7. In May 2020 I was able to download a 299,599 byte file but failed with a 300,219 byte file (size based on successful download using Edge). Larger files usually fail at the end of the download but can stall late in the download. I'd love any input on possible causes and/or tests to try. Unfortunately, I don't know (or have) the logger's firmware code. As I said, at this point I'm trying to satisfy my curiosity, which will allow me to close this out.

    L 2 Replies Last reply
    0
    • J JRickey

      I'm revisiting an issue we had three years ago and wondered whether anyone here might have suggestions of possible causes (with testing ideas if possible). We have a work-around but my curious mind has not been satisfied. At work we use some temperature and humidity data loggers. The units (model iTHX-SD) are accessed via ethernet and have a web server that allows the user to download data covering a day, week, month or year, saving to a text/csv file. In Oct. 2019 our weekly downloads using Chrome stopped working (around the same time Chrome 78.0.3904 was released). Chrome's download would show "Failed - No File." Facts and testing from around that time showed: 1. The issue occurred the same week at two different facilities and with various computers, including Chrome on Win 10, Win 7, Linux and Android phone. Note, though, that only one computer attempted (and succeeded) to access the data the prior week. 2. Firmware for the loggers had not changed. 3. We could download a day's worth of data, but not a week's worth. Previously we had no trouble downloading a year's worth of data. 4. Firefox and Edge can download the data (our work-around). 5. Chrome, IE and Opera failed to download the data, with Opera reporting that the download was interrupted. (IE and Opera were not used for this prior to this test, so no idea how they 'previously' behaved.) 6. In April 2020 I tried downloading a year's worth of data with Chrome 81.0.4044 and the progress bar showed 28.4/28.4 MB for a fraction of a second before showing Failed - No File. 7. In May 2020 I was able to download a 299,599 byte file but failed with a 300,219 byte file (size based on successful download using Edge). Larger files usually fail at the end of the download but can stall late in the download. I'd love any input on possible causes and/or tests to try. Unfortunately, I don't know (or have) the logger's firmware code. As I said, at this point I'm trying to satisfy my curiosity, which will allow me to close this out.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      JRickey wrote:

      Chrome's download would show "Failed - No File."

      I briefly looked into this for you and the Chromium source code reveals that the error DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT results in the "Failed - No File." message. Following that code path... [https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#281\](https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#281) It checks that the webserver responds with code 206, if not it returns an error. Continuing... it then validates the Content-Range header. [https://chromium.googlesource.com/chromium/src/+/lkgr/net/http/http\_response\_headers.h#319\](https://chromium.googlesource.com/chromium/src/+/lkgr/net/http/http\_response\_headers.h#319) [https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#286\](https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#286) You could debug this with [Wireshark](https://www.wireshark.org/download.html) to see if the webserver is sending back a valid Content-Range header. This is the Lounge where people hang out and chat, look up at the top of the site and post something in "Quick Answers" if you have anymore questions.

      J 1 Reply Last reply
      0
      • J JRickey

        I'm revisiting an issue we had three years ago and wondered whether anyone here might have suggestions of possible causes (with testing ideas if possible). We have a work-around but my curious mind has not been satisfied. At work we use some temperature and humidity data loggers. The units (model iTHX-SD) are accessed via ethernet and have a web server that allows the user to download data covering a day, week, month or year, saving to a text/csv file. In Oct. 2019 our weekly downloads using Chrome stopped working (around the same time Chrome 78.0.3904 was released). Chrome's download would show "Failed - No File." Facts and testing from around that time showed: 1. The issue occurred the same week at two different facilities and with various computers, including Chrome on Win 10, Win 7, Linux and Android phone. Note, though, that only one computer attempted (and succeeded) to access the data the prior week. 2. Firmware for the loggers had not changed. 3. We could download a day's worth of data, but not a week's worth. Previously we had no trouble downloading a year's worth of data. 4. Firefox and Edge can download the data (our work-around). 5. Chrome, IE and Opera failed to download the data, with Opera reporting that the download was interrupted. (IE and Opera were not used for this prior to this test, so no idea how they 'previously' behaved.) 6. In April 2020 I tried downloading a year's worth of data with Chrome 81.0.4044 and the progress bar showed 28.4/28.4 MB for a fraction of a second before showing Failed - No File. 7. In May 2020 I was able to download a 299,599 byte file but failed with a 300,219 byte file (size based on successful download using Edge). Larger files usually fail at the end of the download but can stall late in the download. I'd love any input on possible causes and/or tests to try. Unfortunately, I don't know (or have) the logger's firmware code. As I said, at this point I'm trying to satisfy my curiosity, which will allow me to close this out.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        "Browser incompatibility". The server is returning (or Chrome is expecting) a code / event that only Edge and Firefox are "handling" (or ignoring) as the case my be. I'd look at FTP.

        "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

        J 1 Reply Last reply
        0
        • L Lost User

          JRickey wrote:

          Chrome's download would show "Failed - No File."

          I briefly looked into this for you and the Chromium source code reveals that the error DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT results in the "Failed - No File." message. Following that code path... [https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#281\](https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#281) It checks that the webserver responds with code 206, if not it returns an error. Continuing... it then validates the Content-Range header. [https://chromium.googlesource.com/chromium/src/+/lkgr/net/http/http\_response\_headers.h#319\](https://chromium.googlesource.com/chromium/src/+/lkgr/net/http/http\_response\_headers.h#319) [https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#286\](https://chromium.googlesource.com/chromium/src/+/49bbefe192eabd120f9af9aa1e18ab0116cce891/components/download/internal/common/download\_utils.cc#286) You could debug this with [Wireshark](https://www.wireshark.org/download.html) to see if the webserver is sending back a valid Content-Range header. This is the Lounge where people hang out and chat, look up at the top of the site and post something in "Quick Answers" if you have anymore questions.

          J Offline
          J Offline
          JRickey
          wrote on last edited by
          #4

          Thanks, @Randor. I have minimal experience with Wireshark but I did get it to log some data. I'm not seeing any apparent cause, but I'll continue looking.

          L 1 Reply Last reply
          0
          • L Lost User

            "Browser incompatibility". The server is returning (or Chrome is expecting) a code / event that only Edge and Firefox are "handling" (or ignoring) as the case my be. I'd look at FTP.

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            J Offline
            J Offline
            JRickey
            wrote on last edited by
            #5

            I'm curious what the incompatibility is. As for FTP the firmware does not seem to allow that. What I'm working on is code to submit the HttpRequest, retrieve the data, parse it and save to a database (simple steps, now that I know how to form the request). I was just hoping to get an idea of the cause in order to satisfy my curiosity.

            1 Reply Last reply
            0
            • J JRickey

              Thanks, @Randor. I have minimal experience with Wireshark but I did get it to log some data. I'm not seeing any apparent cause, but I'll continue looking.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              If you are really getting the "Failed - No File." error in the Chrome browser then the open source code I linked shows exactly what causes the error. As far as I can tell there are no other possibilities.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups