radeklat / micropython-thingspeak

Library for sending data to thingspeak.com from IoT devices running micropython (such as ESP8266)
MIT License
13 stars 1 forks source link

ProtoHTTPS resulting in MBEDTLS_ERR_SSL_ALLOC_FAILED #1

Open mrtreg opened 4 years ago

mrtreg commented 4 years ago

Hi,

I wanted to give some feedback about the ProtoHTTPS implementation.

It results in the following error at every 6th call.

OS error: [Errno -32512] MBEDTLS_ERR_SSL_ALLOC_FAILED

Based on the following post, I started garbage collection after every "send". This seems to work. After testing, I'll try to make a PR. :)

Kind regards, G

RobuitDelft commented 4 years ago

Hi G,

I'm Rob, work at TU Delft and fiddle with micropython and thingspeak now and then. But I think you have the wrong Rob. This does not ring a bell.

Best,

-- R.A.G. (Rob) van Laarhoven

Hoofd Afdeling Datamanagement

TU Delft / Directie ICT & FM

Landbergstraat 15, 2628 CE Delft

Postbus 354, 2600 AJ Delft

T +31 (0)15 278 1968

M +31 (0)6 14623359

E rmailto:i.lange@tudelft.nl.a.g.vanlaarhoven@tudelft.nl

I www.ict.tudelft.nlhttp://www.ict.tudelft.nl/


From: mrtreg notifications@github.com Sent: 28 April 2020 22:41:20 To: radeklat/micropython-thingspeak Cc: Subscribed Subject: [radeklat/micropython-thingspeak] ProtoHTTPS resulting in MBEDTLS_ERR_SSL_ALLOC_FAILED (#1)

Hi,

I wanted to give some feedback about the ProtoHTTPS implementation.

It results in the following error at every 6th call.

OS error: [Errno -32512] MBEDTLS_ERR_SSL_ALLOC_FAILED

Based on the following posthttps://urldefense.proofpoint.com/v2/url?u=https-3A__forum.pycom.io_topic_2164_lopy-2Dhttp-2Dpost-2Drequest-2Doserror_5&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=4bnalYDrQjn4dvC1rvusiW7esanlV26m2zBz-fSHbbU&m=scif7r3-82kJ6kQoqUE3_9Nm2mOYcNRsfqzqvHt_CCk&s=WFCOnuEYC5uY6DHJSZqQH6jj9yAWkIrWffRLYtM9RHw&e=, I started garbage collection after every "send". This seems to work. After testing, I'll try to make a PR. :)

Kind regards, G

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_radeklat_micropython-2Dthingspeak_issues_1&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=4bnalYDrQjn4dvC1rvusiW7esanlV26m2zBz-fSHbbU&m=scif7r3-82kJ6kQoqUE3_9Nm2mOYcNRsfqzqvHt_CCk&s=bDcYYru15J5DFSmkgQ8LHbClahfhNAkKkjh92VxljV4&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AEED5DBA6XWF6XMCSHVOQHDRO45PBANCNFSM4MTFAPXQ&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=4bnalYDrQjn4dvC1rvusiW7esanlV26m2zBz-fSHbbU&m=scif7r3-82kJ6kQoqUE3_9Nm2mOYcNRsfqzqvHt_CCk&s=fyfLtDRyoj-_DXneKOZz4ZvHlns40FVg3j1iR2mFbQg&e=.

mrtreg commented 4 years ago

Hi G, I'm Rob, work at TU Delft and fiddle with micropython and thingspeak now and then. But I think you have the wrong Rob. This does not ring a bell. Best, -- R.A.G. (Rob) van Laarhoven Hoofd Afdeling Datamanagement TU Delft / Directie ICT & FM Landbergstraat 15, 2628 CE Delft Postbus 354, 2600 AJ Delft T +31 (0)15 278 1968 M +31 (0)6 14623359 E rmailto:i.lange@tudelft.nl.a.g.vanlaarhoven@tudelft.nl I www.ict.tudelft.nl<http://www.ict.tudelft.nl/> ____ From: mrtreg notifications@github.com Sent: 28 April 2020 22:41:20 To: radeklat/micropython-thingspeak Cc: Subscribed Subject: [radeklat/micropython-thingspeak] ProtoHTTPS resulting in MBEDTLS_ERR_SSL_ALLOC_FAILED (#1) Hi, I wanted to give some feedback about the ProtoHTTPS implementation. It results in the following error at every 6th call. OS error: [Errno -32512] MBEDTLS_ERR_SSL_ALLOC_FAILED Based on the following posthttps://urldefense.proofpoint.com/v2/url?u=https-3A__forum.pycom.io_topic_2164_lopy-2Dhttp-2Dpost-2Drequest-2Doserror_5&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=4bnalYDrQjn4dvC1rvusiW7esanlV26m2zBz-fSHbbU&m=scif7r3-82kJ6kQoqUE3_9Nm2mOYcNRsfqzqvHt_CCk&s=WFCOnuEYC5uY6DHJSZqQH6jj9yAWkIrWffRLYtM9RHw&e=, I started garbage collection after every "send". This seems to work. After testing, I'll try to make a PR. :) Kind regards, G — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_radeklat_micropython-2Dthingspeak_issues_1&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=4bnalYDrQjn4dvC1rvusiW7esanlV26m2zBz-fSHbbU&m=scif7r3-82kJ6kQoqUE3_9Nm2mOYcNRsfqzqvHt_CCk&s=bDcYYru15J5DFSmkgQ8LHbClahfhNAkKkjh92VxljV4&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AEED5DBA6XWF6XMCSHVOQHDRO45PBANCNFSM4MTFAPXQ&d=DwMCaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=4bnalYDrQjn4dvC1rvusiW7esanlV26m2zBz-fSHbbU&m=scif7r3-82kJ6kQoqUE3_9Nm2mOYcNRsfqzqvHt_CCk&s=fyfLtDRyoj-_DXneKOZz4ZvHlns40FVg3j1iR2mFbQg&e=.

Hi Rob, thanks for the feedback. The only thing I did is adding this issue on the "micropython-thingspeak" Github repo. :)

Kr, G

radeklat commented 4 years ago

Hi @mrtreg. I have not observed this issue myself so any PR fixing it would be most welcome :)