Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

3rd party http not working - CMX release 3.14.0 build 3159 - Win7 [solved]

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

3rd party http not working - CMX release 3.14.0 build 3159 - Win7 [solved]

Post by Gyvate »

Hi
after installing the 3159 build, my 3rd party http posting stopped working
Downgraded again to 3152 where it works properly again.
attached the MXDiags file
You do not have the required permissions to view the files attached to this post.
Last edited by Gyvate on Sun 05 Dec 2021 5:52 pm, edited 2 times in total.
User avatar
HansR
Posts: 5870
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by HansR »

Windows NT 6.1 reached its end of support at 14 jan 2020 so apparently the HTTPclient feature does not seem to be working anymore because of the upgrade to .NET 4.8 (which is apparent from a later date).

Similar behaviour can probably be observed on Windows 7 with the same reason.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
meteo19
Posts: 89
Joined: Tue 03 May 2016 8:13 pm
Weather Station: Davis VP2+/DP1500 SmartHub
Operating System: Microsoft Windows 7 Pro
Location: Ségur-Le-Château, France
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by meteo19 »

HansR wrote: Sun 05 Dec 2021 12:33 am Windows NT 6.1 reached its end of support at 14 jan 2020 so apparently the HTTPclient feature does not seem to be working anymore because of the upgrade to .NET 4.8 (which is apparent from a later date).

Similar behaviour can probably be observed on Windows 7 with the same reason.
Hi Hans
Update to 3.14.0 (build: 3159) with Microsoft Windows 7 Pro and everything works normally since 2h30 now. To see tonight at midnight but for the moment everything is fine.

Regards;
Patrick
User avatar
HansR
Posts: 5870
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by HansR »

meteo19 wrote: Sun 05 Dec 2021 7:13 am
HansR wrote: Sun 05 Dec 2021 12:33 am Windows NT 6.1 reached its end of support at 14 jan 2020 so apparently the HTTPclient feature does not seem to be working anymore because of the upgrade to .NET 4.8 (which is apparent from a later date).

Similar behaviour can probably be observed on Windows 7 with the same reason.
Hi Hans
Update to 3.14.0 (build: 3159) with Microsoft Windows 7 Pro and everything works normally since 2h30 now. To see tonight at midnight but for the moment everything iby s fine.

Regards;
Patrick
Hi Patrick,

Yes, but you have a Davis which is not read through the HTTP protocol.
You may get an issue with your extra sensors though (which are ECOWITT if they are handled by the HTTP protocol or no issue when differently, so far that seems OK).
And still: you are not on the CUtils map which is on .NET 4.8 much longer and which uses HTTPclient for handling the signature files and map download.

Regards,
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by mcrossley »

HansR wrote: Sun 05 Dec 2021 12:33 am Windows NT 6.1 reached its end of support at 14 jan 2020 so apparently the HTTPclient feature does not seem to be working anymore because of the upgrade to .NET 4.8 (which is apparent from a later date).

Similar behaviour can probably be observed on Windows 7 with the same reason.
Hi Hans, where have you got this information from. As far as I know Framework 4.8 is fully functional on Windows 7 SP1 and later?

I'll check that the Custom HTTP upload - but it will on the Windows 11 that my dev machine runs...
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by Gyvate »

@Mark:
on Win11 it works - but on Win7 which is my main Windows CMX server it does not.
There are indications pointing to certificates and trusted connections coming with the .NET "library".
Maybe some special .NET runtime (and/or SDK) needs to be installed on the Win7 machine and then some dotnet commands issued.
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by mcrossley »

I do not think so - do you have the latest version of the 4.8 runtime installed? - https://dotnet.microsoft.com/download/d ... work/net48

Edit: and up to date with Windows updates?
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by mcrossley »

Could you capture the actual error messages you are see relating to Framework please?
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by Gyvate »

nothing revealing in the MXdiags -
2021-12-04 22:17:59.021 CustomHttpSeconds: Querying - https://api.weatherwizz.com/api/update?stationid=.............
2021-12-04 22:17:59.619 CustomHttpSeconds: An error occurred while sending the request.
keeps on repeating

I only did some google digging and ran e.g. into threads/posts like
https://www.hannesholst.com/blog/httpcl ... e-request/
and
https://gateway.sdl.com/apex/communityk ... =000015928

will install the .NET 4.8 runtime and see if there are any changes
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by mcrossley »

OK, that second link may be a clue.

In the previous versions of MX I explicitly enabled TLS 1.1 and 1.2.

With .Net 4.8 the recommendation is not to do this, and let the .OS decide what is available, this allows your client to use TLS 1.3 where it is available.

So that reg hack, which enables TLS 1.2 by default in Windows 7 maybe worth investigating.
User avatar
HansR
Posts: 5870
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by HansR »

mcrossley wrote: Sun 05 Dec 2021 11:25 am Hi Hans, where have you got this information from. As far as I know Framework 4.8 is fully functional on Windows 7 SP1 and later?

I'll check that the Custom HTTP upload - but it will on the Windows 11 that my dev machine runs...
Hi Mark,

I have this from the experience (with CUtils) that NET 4.8 has issues on Win7 and now apparently on NT 6.1. Both are apparently not supported anymore so I presume the required .NET updates do not come automatically (if installable at all). I have no documentation for you. All issues experienced are with the

Code: Select all

HttpClient PostClientAsync
and the

Code: Select all

HttpClient GetStringAsync
calls. No other problems seen.

And yes, they are to https sites but I don't do any forced settings - I think - so if you are right the system should find its way.
Could there be an interference with FluentFTP setting of TLS, or SSH for that matter?
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by Gyvate »

(re-)installed .NET 4.8 - went back to 3159.
Must have been a re-install as the installation routine insisted on a repair => 4.8 is already on Win7
(even though since January 2020 there are no updates anymorefor Win7, except for the Virus Scanner).
But - no change.

On my Win11 installation, I keep on getting the following message for each post:
2021-12-05 16:00:42.675 CustomHttpSeconds: Querying - https://api.weatherwizz.com/api/update?stationid=......
2021-12-05 16:00:42.977 CustomHttpSeconds: Response status code does not indicate success: 400 (Bad Request).
However, the post goes through and the data arrives.
(Win11 = 10.0.22499.1010)
Mapantz
Posts: 1774
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by Mapantz »

Gyvate wrote: Sun 05 Dec 2021 3:08 pm (re-)installed .NET 4.8 - went back to 3159.
Must have been a re-install as the installation routine insisted on a repair => 4.8 is already on Win7
(even though since January 2020 there are no updates anymorefor Win7, except for the Virus Scanner).
But - no change.

On my Win11 installation, I keep on getting the following message for each post:
2021-12-05 16:00:42.675 CustomHttpSeconds: Querying - https://api.weatherwizz.com/api/update?stationid=......
2021-12-05 16:00:42.977 CustomHttpSeconds: Response status code does not indicate success: 400 (Bad Request).
However, the post goes through and the data arrives.
(Win11 = 10.0.22499.1010)
I was getting problems with weatherwizz over a month ago - same error messages. It was working fine & dandy, then suddenly I started getting those messages. I hadn't upgraded CMX, and nothing had changed on Windows 10. It was definitely an issue on weatherwizz's side.
Image
User avatar
Gyvate
Posts: 295
Joined: Wed 16 Dec 2020 2:14 pm
Weather Station: GW1x00/WH2650WiFi/HP2553/GW2000
Operating System: Win 11 (PC/RPi), Raspbian 11,WSL
Location: Saarbrücken, Germany
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by Gyvate »

Mapantz wrote: Sun 05 Dec 2021 3:28 pm
Gyvate wrote: Sun 05 Dec 2021 3:08 pm (re-)installed .NET 4.8 - went back to 3159.
Must have been a re-install as the installation routine insisted on a repair => 4.8 is already on Win7
(even though since January 2020 there are no updates anymorefor Win7, except for the Virus Scanner).
But - no change.

On my Win11 installation, I keep on getting the following message for each post:
2021-12-05 16:00:42.675 CustomHttpSeconds: Querying - https://api.weatherwizz.com/api/update?stationid=......
2021-12-05 16:00:42.977 CustomHttpSeconds: Response status code does not indicate success: 400 (Bad Request).
However, the post goes through and the data arrives.
(Win11 = 10.0.22499.1010)
I was getting problems with weatherwizz over a month ago - same error messages. It was working fine & dandy, then suddenly I started getting those messages. I hadn't upgraded CMX, and nothing had changed on Windows 10. It was definitely an issue on weatherwizz's side.
maybe the "Response status code does not indicate success: 400 (Bad Request)" message is a weatherwizz issue, but the "An error occurred while sending the request" message with no data sent rather not. The same message sent inside the same network, one on a Win7 machine and one on a Win11 machine, Win11 successful, Win7 unsuccessful, doesn't really point at weatherwizz imo.
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: 3rd party http not working - CMX release 3.14.0 build 3159

Post by mcrossley »

Have you tried applying that registry update to the Windows 7 machine and rebooting it, then trying v3.14 again?
Post Reply