ThingHTTP returns -1
조회 수: 1 (최근 30일)
이전 댓글 표시
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
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
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
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
커뮤니티
더 많은 답변 보기: ThingSpeak 커뮤니티
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!