ThingHTTP returns -1

3 views (last 30 days)
Egert V
Egert V on 30 Sep 2021
Commented: Vinod on 5 Oct 2021
Website where I was getting information with ThingHTTP now returns -1 when not using any parse string. Is thingspeak now blocked by the webpage? How can I get it working again?
Marc Paradis
Marc Paradis on 1 Oct 2021
Me too ihave this problems, so i'm answering here's the details.
Method: GET
Content-Type: application/json
HTTP Version: 1.1
host :
even if i dont need to parse the value, it returns -1 :(
have a look.

Sign in to comment.

Answers (1)

Vinod on 4 Oct 2021
Edited: Vinod on 4 Oct 2021
It appears that the certificate chain of the website may have an expired or invalid certificate or it is not from a recognized certification authority. You will have to change the request from HTTPS to HTTP so the certificate is not verified by the ThingSpeak servers. Change URL in ThingHTTP from https://<YOURSITE> to http://<YOURSITE>. For more details, see here:
NOTE: Using HTTP instead of HTTPS is strongly not-recommended. Ideally the maintainer of the website in question is able to update their site certificate chain.
Vinod on 5 Oct 2021
@Egert V: You could use a MATLAB Analysis app on ThingSpeak with the WEBREAD and URLFILTER functions to parse the data. Give it a shot!

Sign in to comment.


More Answers in the  ThingSpeak Community


Find more on MATLAB Compiler SDK in Help Center and File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!