nRF9160 thingy91 - AWS IOT (sample): Connect errors -11 and -10

Hello All,

This is from an app I had working 1 1/2 months ago - when I've tried recently to get it connected again, I haven't been successful.

The latest asset tracker appears to work find and posts data to the nRF Cloud.

I've seen previous posts - DNS is working - or appears to be ok.

I'm getting the following:

===

+CSCON: 0


RRC mode: Idle


Next connection retry in 30 seconds


AWS_IOT_EVT_CONNECTING


+CSCON: 1


RRC mode: Connected


E: getaddrinfo, error -11


E: client_broker_init, error: -10


AWS_IOT_EVT_CONNECTING


+CSCON: 0


RRC mode: Idle


Next connection retry in 30 seconds


AWS_IOT_EVT_CONNECTING


+CSCON: 1


RRC mode: Connected


E: getaddrinfo, error -11


E: client_broker_init, error: -10


AWS_IOT_EVT_CONNECTING


+CSCON: 0


RRC mode: Idle

====

I can reload the asset tracker and it'll work fine.  I'm running the AWS_IOT sample code.

Thanks in advance as to what -11 and -10 mean - it would appear getting the address fails - I tried to find error codes that make sense but not sure and wanted to ask in case something has changed in the last 1 1/2 months.  This app used to run without issue.

Thanks!
jwest

Parents
  • Hi,

    Thanks in advance as to what -11

    The -11 comes from getaddrinfo, which has it's own error codes. You can find them here: https://github.com/nrfconnect/sdk-zephyr/blob/main/include/net/dns_resolve.h#L122

    and -10 mean

    This is a normal errno error number, you can find them here: https://github.com/zephyrproject-rtos/zephyr/blob/main/lib/libc/minimal/include/errno.h#L49

    Remember to look at the right version of the file, as the numbers has changed over time.

    This is from an app I had working 1 1/2 months ago
    I'm running the AWS_IOT sample code.

    Are you running an old build of the aws_iot sample, that used to work?

    If so, what version is the build based on, and did you make any changes?

    Or are you running a new build, of an old version of the sample?

    Then, again, I would need to know what version of the sample you are using, and if you have made any changes to it, in addition, I would  like to know which toolchain version you used when building the sample.

    Or, are you using a new version of the aws_iot sample which doesn't work, but earlier you used an older version which did work?

    Then again, I have similar questions. Which SDK versions are involved, and have you made any modifications to either of the versions?

    And, regardless of the above, which modem FW version are you using, and what SIM card are you using?

    Is it possible that hte SIM card is out of data?

    Best regards,

    Didrik

Reply
  • Hi,

    Thanks in advance as to what -11

    The -11 comes from getaddrinfo, which has it's own error codes. You can find them here: https://github.com/nrfconnect/sdk-zephyr/blob/main/include/net/dns_resolve.h#L122

    and -10 mean

    This is a normal errno error number, you can find them here: https://github.com/zephyrproject-rtos/zephyr/blob/main/lib/libc/minimal/include/errno.h#L49

    Remember to look at the right version of the file, as the numbers has changed over time.

    This is from an app I had working 1 1/2 months ago
    I'm running the AWS_IOT sample code.

    Are you running an old build of the aws_iot sample, that used to work?

    If so, what version is the build based on, and did you make any changes?

    Or are you running a new build, of an old version of the sample?

    Then, again, I would need to know what version of the sample you are using, and if you have made any changes to it, in addition, I would  like to know which toolchain version you used when building the sample.

    Or, are you using a new version of the aws_iot sample which doesn't work, but earlier you used an older version which did work?

    Then again, I have similar questions. Which SDK versions are involved, and have you made any modifications to either of the versions?

    And, regardless of the above, which modem FW version are you using, and what SIM card are you using?

    Is it possible that hte SIM card is out of data?

    Best regards,

    Didrik

Children
No Data
Related