ThingHTTP returns -1

4 ビュー (過去 30 日間)
Egert V
Egert V 2021 年 9 月 30 日
コメント済み: Vinod 2021 年 10 月 5 日
Hi
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?
  2 件のコメント
Christopher Stapels
Christopher Stapels 2021 年 9 月 30 日
I would inspect the source at the target website. That is the most likely cause. Can you share the ThingHTTP content?
Marc Paradis
Marc Paradis 2021 年 10 月 1 日
Me too ihave this problems, so i'm answering here's the details.
Method: GET
Content-Type: application/json
HTTP Version: 1.1
host : api.quotable.io
even if i dont need to parse the value, it returns -1 :(
have a look.
thanks.
Marc.

サインインしてコメントする。

回答 (1 件)

Vinod
Vinod 2021 年 10 月 4 日
編集済み: Vinod 2021 年 10 月 4 日
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: https://www.securityweek.com/expired-lets-encrypt-root-certificate-causes-problems-many-companies
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.
  2 件のコメント
Egert V
Egert V 2021 年 10 月 5 日
編集済み: Egert V 2021 年 10 月 5 日
Hi, thank you for the answer
For me it will not fix the problem. I will now get a response:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body>
But as this is not really Thingspeak issue, then I will figure out something else. Parsing the page directly for example.
Vinod
Vinod 2021 年 10 月 5 日
@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!

サインインしてコメントする。

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeThingSpeak についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by