nRF Cloud & Node-Red - REST Api Call "connection timed out: api.nrfcloud.com/44.199.169.244:443" but works with curl

Good morning,

Since yesterday i have a new problem with the nRF Cloud. This time with ListMessages of the REST API.

I use a Node-Red rule chain and send a GET to the following endpoint in a time-controlled manner:

As authentication I use the Simple Auth (changed the token for the screenshot). Exactly this setup worked without any problems in the last weeks.
When calling Node-Red I get the following exception:

io.netty.channel.ConnectTimeoutException: connection timed out: api.nrfcloud.com/54.147.11.139:443
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:261)
	at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
	at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:170)
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:834)

If I try to address the endpoint of the error message directly, it indicates that "/v1" must be added to the URL.

With the described adaptation, the connection seems to be successful :

What surprises me very much about this error: the request works via a curl command. 

curl https://api.nrfcloud.com/v1/messages?pageLimit=1 -H "Authorization: Bearer XXexampleYY1234"

Please keep in mind that the request via node-red has only stopped working since the update.

I am looking forward to hints and further ideas to solve the problem.

Best regards, Sven 

Parents
  • Hello Sven, 

    I'm afraid I'm not very familiar with Node Red. Have you looked through our documentation in our nRF Cloud documentation and the ListMessages API ? 


    Please keep in mind that the request via node-red has only stopped working since the update.

    What update are you referring to?

    Thanks.

    Kind regards,
    Øyvind

  • Hello Øyvind,

    thx for your fast reply.

    The Nod Red rule chain is based on your documentation. I am very surprised that I have been able to successfully access your REST interface for several weeks and now a timeout error is returned from the specified interface.

    We have not made any updates or changes on our server, so we assume that it has something to do with yesterday's update of the nRF Connect SDK 1.9.99 yesterday. However, we are not quite sure whether you also classify the nRF Cloud here.

    Do you know if the API or something else has changed? Last weekend we also had a strange error (provider SIM Online - Device Offline), which I have already described in another ticket.

    Best regards, Sven 

Reply
  • Hello Øyvind,

    thx for your fast reply.

    The Nod Red rule chain is based on your documentation. I am very surprised that I have been able to successfully access your REST interface for several weeks and now a timeout error is returned from the specified interface.

    We have not made any updates or changes on our server, so we assume that it has something to do with yesterday's update of the nRF Connect SDK 1.9.99 yesterday. However, we are not quite sure whether you also classify the nRF Cloud here.

    Do you know if the API or something else has changed? Last weekend we also had a strange error (provider SIM Online - Device Offline), which I have already described in another ticket.

    Best regards, Sven 

Children
No Data
Related