Skip to content

(-17040) RSA - The public key operation failed : BIGNUM - Memory allocation failed #6761

@kayleejacob1

Description

@kayleejacob1

Board

custom

Device Description

esp32 wrover

Hardware Configuration

anolog

Version

v2.0.3

IDE Name

visual micro

Operating System

windows 10

Flash frequency

40

PSRAM enabled

yes

Upload speed

115200

Description

I have application that capputre some data send it over to aws with mqtt while connected I can tseem to send regular GET commands via http request. There seems to be enough memory left in heap as seen below is there something else i should look at?

(-17040) RSA - The public key operation failed : BIGNUM - Memory allocation failed

[431121][V][HTTPClient.cpp:252] beginInternal(): url: https://blabla
[431121][D][HTTPClient.cpp:263] beginInternal(): unexpected protocol: https, expected http
[431129][V][HTTPClient.cpp:252] beginInternal(): url: blabla
[431140][D][HTTPClient.cpp:303] beginInternal(): protocol: https, host: blabla

[431153][D][HTTPClient.cpp:598] sendRequest(): request type: 'GET' redirCount: 0

[431160][D][HTTPClient.cpp:1114] connect(): Free heap 95376

[431166][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 93056
[431173][V][ssl_client.cpp:68] start_ssl_client(): Starting socket
[431204][V][ssl_client.cpp:144] start_ssl_client(): Seeding the random number generator
[431205][V][ssl_client.cpp:153] start_ssl_client(): Setting up the SSL/TLS structure...
[431208][D][ssl_client.cpp:174] start_ssl_client(): WARNING: Skipping SSL Verification. INSECURE!
[431217][V][ssl_client.cpp:252] start_ssl_client(): Setting hostname for TLS session...
[431225][V][ssl_client.cpp:267] start_ssl_client(): Performing the SSL/TLS handshake...
[431268][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():271]: (-17040) RSA - The public key operation failed : BIGNUM - Memory allocation failed
[431271][E][WiFiClientSecure.cpp:135] connect(): start_ssl_client: -17040
[431281][V][ssl_client.cpp:319] stop_ssl_socket(): Cleaning SSL connection.
[431285][D][HTTPClient.cpp:1150] connect(): failed connect to mm84ozufz8.execute-api.us-east-1.amazonaws.com:443
[431294][W][HTTPClient.cpp:1471] returnError(): error(-1): connection refused

Sketch

n/a

Debug Message

[431121][V][HTTPClient.cpp:252] beginInternal(): url: https://blabla
[431121][D][HTTPClient.cpp:263] beginInternal(): unexpected protocol: https, expected http
[431129][V][HTTPClient.cpp:252] beginInternal(): url: blabla
[431140][D][HTTPClient.cpp:303] beginInternal(): protocol: https, host: blabla

[431153][D][HTTPClient.cpp:598] sendRequest(): request type: 'GET' redirCount: 0

[431160][D][HTTPClient.cpp:1114] connect(): Free heap 95376

[431166][V][ssl_client.cpp:62] start_ssl_client(): Free internal heap before TLS 93056
[431173][V][ssl_client.cpp:68] start_ssl_client(): Starting socket
[431204][V][ssl_client.cpp:144] start_ssl_client(): Seeding the random number generator
[431205][V][ssl_client.cpp:153] start_ssl_client(): Setting up the SSL/TLS structure...
[431208][D][ssl_client.cpp:174] start_ssl_client(): WARNING: Skipping SSL Verification. INSECURE!
[431217][V][ssl_client.cpp:252] start_ssl_client(): Setting hostname for TLS session...
[431225][V][ssl_client.cpp:267] start_ssl_client(): Performing the SSL/TLS handshake...
[431268][E][ssl_client.cpp:37] _handle_error(): [start_ssl_client():271]: (-17040) RSA - The public key operation failed : BIGNUM - Memory allocation failed
[431271][E][WiFiClientSecure.cpp:135] connect(): start_ssl_client: -17040
[431281][V][ssl_client.cpp:319] stop_ssl_socket(): Cleaning SSL connection.
[431285][D][HTTPClient.cpp:1150] connect(): failed connect to mm84ozufz8.execute-api.us-east-1.amazonaws.com:443
[431294][W][HTTPClient.cpp:1471] returnError(): error(-1): connection refused

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions