thorrak / tiltbridge

Tilt Hydrometer to WiFi Bridge
http://www.tiltbridge.com/
Other
61 stars 27 forks source link

Google Sheets endpoint sporadically posts same data twice or three times #128

Closed pletch closed 3 years ago

pletch commented 3 years ago

Google sheets endpoint always initially posts data twice and will sometimes randomly post multiple data points during the same sending event. See examples below. This is something associated with Send_with_redirects as I did a test by switching to using the HTTPSRedirect library (which has its own issues....) temporarily and it does not exhibit these anomalies.

Initial Startup Example Sheets Data2

Random multi-POST of the same data point. Sheets Data

thorrak commented 3 years ago

Interestingly enough, I think the missing functionality may have been added to the standard HTTPClient library late last year.

I wouldn't mess with this just yet as I know @lbussy was looking at that section of code, but it might be possible to strip send_with_redirects out entirely as a result of this change.

lbussy commented 3 years ago

Yep, working on this in addition to the others.

lbussy commented 3 years ago

I am 91.73% sure this was related to the 301 handlers which is no longer needed with the new code I am working on.

lbussy commented 3 years ago

Unable to reproduce since refactor - closing as fixed with #132.