Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL - A buffer is too small to receive or write a message #7069

Closed
1 task done
SheetLightning opened this issue Aug 1, 2022 · 5 comments
Closed
1 task done

SSL - A buffer is too small to receive or write a message #7069

SheetLightning opened this issue Aug 1, 2022 · 5 comments
Labels
Area: Libraries Issue is related to Library support.

Comments

@SheetLightning
Copy link

SheetLightning commented Aug 1, 2022

Board

ESP32 WROOM

Device Description

ESP32 devkit V1

Hardware Configuration

No other devices attached.

Version

v2.0.4

IDE Name

Arduino IDE version 1.8.19

Operating System

Linux Mint 20.3

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

115200

Description

When the GET request is issued, the following error is returned:

[ 43299][E][ssl_client.cpp:37] _handle_error(): [send_ssl_data():375]: (-27136) SSL - A buffer is too small to receive
Debug mode is set to 'Verbose', otherwise no events are returned from the Calendar API even when calendar events are available for that day. The sketch works fine on the ESP8266.

Sketch

ZIP attached.

Debug Message

Fetching events from: 
https://script.google.com:/macros/s/AKfycbx7OxaWUoywhIxFxrDDcxPzzEB1Lw43SZ_WKfCN8oFVeWvXZPjwRaMrfdm21O63bH1H/exec
[ 43293][V][ssl_client.cpp:369] send_ssl_data(): Writing HTTP request with 150 bytes...
[ 43293][V][ssl_client.cpp:374] send_ssl_data(): Handling error -27136
[ 43299][E][ssl_client.cpp:37] _handle_error(): [send_ssl_data():375]: (-27136) SSL - A buffer is too small to receive or write a message
[ 43313][V][ssl_client.cpp:324] stop_ssl_socket(): Cleaning SSL connection.
Performed GET

Other Steps to Reproduce

Requires a Google Calendar API script to be installed.

https://script.google.com/home/start

I have included the script in the minimal example ZIP.

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

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

Google-Minimal.zip See comment below.

@SheetLightning SheetLightning added the Status: Awaiting triage Issue is waiting for triage label Aug 1, 2022
@SheetLightning
Copy link
Author

I have cut down the minimal example a bit further by removing the RTC and NTP code.

Google-Minimal.zip

@SheetLightning
Copy link
Author

SheetLightning commented Aug 24, 2022

The attached PlatformIO example is a re-written version of the code that removes the need for the httpsRedirect library and uses only the WebClientSecure.print() method to make the HTTP requests. The same problem (and other errors) occurs almost always on the first attempt to make the re-directed GET request and randomly on subsequent attempts.

Google-WebClient.zip

@probonopd
Copy link

probonopd commented Apr 1, 2023

I am also getting [ 3217][E][ssl_client.cpp:37] _handle_error(): [send_ssl_data():387]: (-27136) SSL - A buffer is too small to receive or write a message trying to get data from script.google.com. I was trying to use https://github.com/jbuszkie/HTTPSRedirect.git#31601fd.

Cross-reference:

@mrengineer7777 mrengineer7777 added Area: Libraries Issue is related to Library support. Status: Needs investigation We need to do some research before taking next steps on this issue and removed Status: Awaiting triage Issue is waiting for triage labels Apr 6, 2023
@PaulKC
Copy link

PaulKC commented Apr 16, 2023

I had the same issue, in the end I managed to get data from script.google.com using the method described here https://iotdesignpro.com/articles/esp32-data-logging-to-google-sheets-with-google-scripts

@Parsaabasi Parsaabasi removed the Status: Needs investigation We need to do some research before taking next steps on this issue label Jan 16, 2025
@Parsaabasi
Copy link

Hello,

Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Libraries Issue is related to Library support.
Projects
None yet
Development

No branches or pull requests

5 participants