http_client network error on thingy91

Hello,

I am trying to use http requests on Thingy91 and therefore I tried with the sample from zephyr/samples/net/sockets/http_client.

I can build the project without any problem but when I try to run it, I get the following error when I open a putty terminal:

I did not change anything in the code, and I was supposing it was not a network problem since I activated my SIM card and I can run the asset_tracker and see the data in nrFcloud without any issue.

I am using the nrfConnectSDK 2.0.0, and the SIM is from twilio.

Best regards,

C

Parents
  • Thanks a lot for the feedback, Carole :-) 

    rupcar said:
    I think that the code I sent you was with the wrong certificate but I was trying to connect without it for now anyway. As it was still working half of the time I think it was not the issue for now.

    Well, if you would like to use the HTTPS protocol with port 443, then a certificate is required. Otherwise, the connection should always be rejected by the server. 

    rupcar said:
    I don't know how it made the difference but I put the SIM card in my phone to see how the connection on it was, and now when I put it back in the Thingy I don't have the error anymore...

    I’m not sure if I would recommend putting a cellular IoT SIM card into a mobile phone. That is not supposed to work anyway, as the network protocols are different. 

    Cheers, 

    Markus 

  • Hi again,

    I downloaded again the https_client sample that connects to example.com with the given certificate (to be sure the error was not coming from the trials of connecting to google.com) and the error is there again.

    I also tried with a new Thingy and a new SIM, but it did not change much, the "getAddrInfo() failed" appears half of the time again.

    Do you have any ideas what I could try ?

Reply Children
No Data
Related