third party http upload - unexpected behavio(u)r
Posted: Sun 20 Mar 2022 10:14 am
over the past weeks I noticed double postings by two of my CMX instances - sent to the same web site.
of course only one was supposed to be posted, but CMX didn't behave as (by common sense I think) expected:
instance 1: in the by minute field the URL was entered, "enabled" was tagged and the page saved
result: the posting worked
I switched the posting to instance 2:
I untagged the "enabled" box in instance 1 and saved (the URL was still in the field - and why not - so I thought)
instance 2: in the by minute seconds field the URL was entered, "enabled" was tagged and the page saved
result: the posting worked
HOWEVER - instance 1 kept on posting even though the "enabled" was untagged
after the saving, each time the respective instance was restarted
The only way I got it stop was doing the following steps:
- tag enabled
- field cleared of URL, saved
not enough
in addition
- tag disabled (untaged) with empty URL field
- saved
only then it would stop posting - otherwise the URL was not removed from Cumulus.ini and the posts were done again after a restart even though the option was untagged
Now I know what to do, but isn't that behaviour somewhat misleading ?
My expectation was (still is) that I can have a URL in the field and the "enabled" untagged and it wouldn't post. Like this I can disable the post without losing the URL (which can be a very long string of sensor data) and re-enable it by just tagging it again - otherwise, what's the point of the "enabled" field to be tagged/untagged if the untag doesn't work ?
untagging and saving alone won't do the job ...
- For enabling tagging, putting URL and save works ...
EDIT: changed minute to seconds as that was the field in question
of course only one was supposed to be posted, but CMX didn't behave as (by common sense I think) expected:
instance 1: in the by minute field the URL was entered, "enabled" was tagged and the page saved
result: the posting worked
I switched the posting to instance 2:
I untagged the "enabled" box in instance 1 and saved (the URL was still in the field - and why not - so I thought)
instance 2: in the by minute seconds field the URL was entered, "enabled" was tagged and the page saved
result: the posting worked
HOWEVER - instance 1 kept on posting even though the "enabled" was untagged
after the saving, each time the respective instance was restarted
The only way I got it stop was doing the following steps:
- tag enabled
- field cleared of URL, saved
not enough
in addition
- tag disabled (untaged) with empty URL field
- saved
only then it would stop posting - otherwise the URL was not removed from Cumulus.ini and the posts were done again after a restart even though the option was untagged
Now I know what to do, but isn't that behaviour somewhat misleading ?
My expectation was (still is) that I can have a URL in the field and the "enabled" untagged and it wouldn't post. Like this I can disable the post without losing the URL (which can be a very long string of sensor data) and re-enable it by just tagging it again - otherwise, what's the point of the "enabled" field to be tagged/untagged if the untag doesn't work ?
untagging and saving alone won't do the job ...
EDIT: changed minute to seconds as that was the field in question