- This topic has 0 replies, 1 voice, and was last updated 2025-01-28 at 6:32 PM by .
- You must be logged in to reply to this topic.
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. Home › Forums › Mayfly Data Logger › Interpreting and adjusting error values
Tagged: error values, post request
Hello there, I am working on a lit bit of debugging for some publisher code using ModularSensors. I successfully connect to the server but get a 422 error code which means that though the POST request had the proper syntax, the body could not be processed. I’ve been trying to figure out what it could be, and I think it might have to do with the error values that are generated for different sensors.
The server expects a -9999 value for errors, but I’ve noticed that sometimes, using Modular Sensors, there is a range of error values that are eventually recorded, such as -9999, -9999.0, -9999.00000, or even NAN with a bunch of white space in front of it. I think that these error values are not acceptable to the server, and that is what is throwing back the 422 response code.
Is there a way to adjust how these -9999 values are presented when logging them? Why do some error values use NAN instead of -9999, and is there a way to change the code so that it will always use -9999 without any zero-value decimals following it?
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalize your experience. You can manage your preferences, but blocking some cookies may impact site performance and services
Essential cookies enable basic functions and are necessary for the proper function of the website.
CleanTalk offers effective spam protection and website security solutions to enhance user experience.
Service URL: cleantalk.org (opens in a new window)
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
SourceBuster is used by WooCommerce for order attribution based on user source.
You can find more information in our Cookie Policy and Privacy Policy.