This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Thingy91 https_client - getaddrinfo failed err 116 50% of the time

Hi All,

I got my hands on a Thingy91 and trying to do devlopment with it starting with a  basic https client sample app. I have registered my Sim and everything works ~50% of the time.

When it works, I found that the network connects and does the ip address query quickly. Though when it doesn't, its like it just timesout. I tried putting a retry counter on the getaddress function, though if 1 fails with a timeout, they will all do the same. Roughly 40s per fail, so 5 retries is around ~3.2min period.

Non-Working example:

Working Example:

I am not sure about the best way to approach this. The only visibility I have of my sim is from nrfcloud, so I cannot see what happens on the backend for failed connections to the network etc.

I also tried using my own DNS from this example. Though results in same as above, sometimes works, sometimes doesn't.

I played around with the at_cmd.c file and overrode the logging. So I got these 2 sets of logs instead, with more verbose information.

Working:

And finally, not working: