0

feed->exists() and feed->create() failure
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

feed->exists() and feed->create() failure

by claudegbeaudoin on Thu Jan 25, 2018 8:56 am

Hello,

I am using a Feather HUZZAH32 and compiling the "adafruitio_10_dashboard_creation" example.

My WiFi AP username and password have been set as are the Adafruit IO username and API key.

When the program calls feed->exists() it takes about 10 to seconds to complete, as does feed->create().

I've changed the debug mode to "verbose" to see what was going on. Now when the feed->exists() function is called, you can see the debug information come out right away and fails with an UNKNOWN ERROR CODE (004E) message (see monitor output below).

The same message is repeated for feed->create(), dashboard->exists() and dashboard->create()

Does anybody have a solution for this, or knows what causes it?

Thanks,
-Claude.

----------------------------
Monitor output:

Adafruit IO connected.
Calling feed->exists()
[I][ssl_client.cpp:45] start_ssl_client(): Free heap before TLS 117112
[I][ssl_client.cpp:47] start_ssl_client(): Starting socket
[I][ssl_client.cpp:82] start_ssl_client(): Seeding the random number generator
[I][ssl_client.cpp:91] start_ssl_client(): Setting up the SSL/TLS structure...
[I][ssl_client.cpp:115] start_ssl_client(): WARNING: Use certificates for a more secure communication!
[I][ssl_client.cpp:139] start_ssl_client(): Setting hostname for TLS session...
[I][ssl_client.cpp:154] start_ssl_client(): Performing the SSL/TLS handshake...
[I][ssl_client.cpp:172] start_ssl_client(): Verifying peer X.509 certificate...
[I][ssl_client.cpp:182] start_ssl_client(): Certificate verified.
[I][ssl_client.cpp:197] start_ssl_client(): Free heap after TLS 80524
[E][ssl_client.cpp:25] handle_error(): UNKNOWN ERROR CODE (004E)
[E][ssl_client.cpp:27] handle_error(): MbedTLS message code: -78
[I][ssl_client.cpp:205] stop_ssl_socket(): Cleaning SSL connection.

Calling feed->create()
[I][ssl_client.cpp:45] start_ssl_client(): Free heap before TLS 126280
[I][ssl_client.cpp:47] start_ssl_client(): Starting socket
[I][ssl_client.cpp:82] start_ssl_client(): Seeding the random number generator
[I][ssl_client.cpp:91] start_ssl_client(): Setting up the SSL/TLS structure...
[I][ssl_client.cpp:115] start_ssl_client(): WARNING: Use certificates for a more secure communication!
[I][ssl_client.cpp:139] start_ssl_client(): Setting hostname for TLS session...
[I][ssl_client.cpp:154] start_ssl_client(): Performing the SSL/TLS handshake...
[I][ssl_client.cpp:172] start_ssl_client(): Verifying peer X.509 certificate...
[I][ssl_client.cpp:182] start_ssl_client(): Certificate verified.
[I][ssl_client.cpp:197] start_ssl_client(): Free heap after TLS 83004
[E][ssl_client.cpp:25] handle_error(): UNKNOWN ERROR CODE (004E)
[E][ssl_client.cpp:27] handle_error(): MbedTLS message code: -78
[I][ssl_client.cpp:205] stop_ssl_socket(): Cleaning SSL connection.
Example feed creation failed.

claudegbeaudoin
 
Posts: 3
Joined: Wed Sep 06, 2017 8:35 pm

Re: feed->exists() and feed->create() failure

by fmeylink on Tue Jan 08, 2019 3:18 pm

Hi,

did you solve this ?
i have the same issue

fmeylink
 
Posts: 13
Joined: Thu Oct 26, 2017 4:39 pm

Please be positive and constructive with your questions and comments.