Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Response code 504 from data.envirodiy.org

Home Forums Mayfly Data Logger Response code 504 from data.envirodiy.org

Viewing 18 reply threads
  • Author
    Posts
    • #13736
      Matt Barney
      Participant
        Today I’ve been intermittently getting a 504 HTTP response when POSTing to the data portal:

      • #13738
        Sara Damiano
        Moderator
          Huh.  I’m not aware of any particular reason today would be worse than any other day.  There was an update to MonitorMW released on Thursday (1/23), but it mostly dealt with Leaf Pack data and
        • #13739
          neilh20
          Participant
            I’m seeing it as well. It starts of as 201, and then after 10~2 POST starts printing 504. It has been happening from late last week – but is being recorded on MMW. I wasn’t monitori
          • #13742
            Matt Barney
            Participant

              In my case, any time I get a 504 response, the corresponding data do not show up on MMW. Pasting the same JSON message body into Postman and sending it always succeeds with a 201.

            • #13744
              Sara Damiano
              Moderator
                @aufdenkampe – any thoughts?

                Postman automatically tacks on more standard http headers than I include in the post from ModularSensors.  I wonder if one of them is making a difference. In PostM

              • #13745
                Anthony Aufdenkampe
                Participant
                  Hmm. I wonder if it is somehow connected to our last release on Thu. Jan. 23. As Sara mentioned, we didn’t touch the code related to the HTTP post request, but at that time we did make some chan
                • #13746
                  Matt Barney
                  Participant
                    Looks like it will still happen when posting to monitormywatershed.org. It’s intermittent, as before. Log file attached.

                    To do this test, I modified line 21 in EnviroDIYPublisher.cpp as follows

                    Attachments:
                  • #13760
                    Matt Barney
                    Participant
                      I just found issue #303 on the ODM2DataSharingPortal site that may be related to my issue: I have a blank UUID in my example requ
                    • #13761
                      Matt Barney
                      Participant
                        OK, looks like I still get 504 errors intermittently, even when all UUIDs are specified properly.

                      • #14006
                        Matt Barney
                        Participant
                          I’ve been getting a lot of 504 (Gateway Timeout) HTTP responses to the POST messages sent to MMW. I ran a test today with my Mayfly sampling every 2 minutes, and out of 111 samples, I got 34 suc
                        • #14008
                          neilh20
                          Participant
                            I’m seeing similar. Out of 15posts at two miuntes apart. the first 6 where 201, and then the rest mixed 504 and 201.
                            The site is https://monitormywatershed.org/sites/TU-RC-Test03a/
                            The post stru
                          • #14010
                            Matt Barney
                            Participant
                              Thank you, Neil!

                              Here is more information, from a test I ran overnight using a 2 minute sampling interval, from 04-01 15:32 to 04-02 08:08 MST (UTC-7:00):

                              • 498 total samples taken, of which
                              Attachments:
                            • #14012
                              neilh20
                              Participant
                                Hi Matt
                                You’re doing some good characterization work. Thankyou for sharing it.
                                A basic issue to keep in mind is that all communications can be unreliable as there is complex telecoms infrastruct
                              • #14015
                                Matt Barney
                                Participant
                                  Hi Neil,

                                  Thanks for your good explanations and ideas. As you’ve described, the Mayfly->MMW system in its current form would need additional engineering effort to be able to support a high-re

                                • #14016
                                  Anthony Aufdenkampe
                                  Participant
                                    Hey Matt and Neil, we’ve had a bunch of server-side issues in the last few days, so I’m guessing that’s more the problem than anything on your device. Part of the issue was a 5.5 hou
                                  • #14017
                                    neilh20
                                    Participant
                                      Hi Anthony ~ thanks for the headsup. For today my desk proto system running at 15minutes intervals/WiFi I haven’t seen any timeouts, all 201’s in the last 5hrs

                                      Matt, sorry to hear the rec

                                    • #14020
                                      Matt Barney
                                      Participant
                                        Hi Anthony, Thanks for that, and will keep the tracert in mind!

                                        Hi Neil, Yep, that’s software development; I’ve got the grey hairs too! I am interested in learning more about your thought

                                      • #14021
                                        Matt Barney
                                        Participant
                                          Hi again.

                                          I ran another test overnight, again using a 2 minute sampling interval, with no code changes, but I removed the build flags for modem debugging from the platformio.ini. Here are the results

                                        • #14046
                                          Matt Barney
                                          Participant
                                            Today I re-tested, using new hardware: Mayfly, modem, antenna, and LTEBee adapter. I’m still seeing the same problems: both Response Code 504 from MMW, as well as what I described above, where t
                                        Viewing 18 reply threads
                                        • You must be logged in to reply to this topic.