Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Core 3.1.1 - ESP8266HTTPClient.h getString() empty or truncated - read Timeout

Open TobbeG opened this issue 2 years ago • 29 comments

Basic Infos

  • [X ] This issue complies with the issue POLICY doc.
  • [ X] I have read the documentation at readthedocs and the issue is not addressed there.
  • [ X] I have tested that the issue is present in current master branch (aka latest git).
  • [X ] I have searched the issue tracker for a similar issue.
  • [X] If there is a stack dump, I have decoded it.
  • [X ] I have filled out all fields below.

Platform

  • Hardware: [ESP01|
  • Core Version: [3.1.1]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Generic ESP8266 Module]
  • Flash Mode: [qio]
  • Flash Size: [1MB]
  • lwip Variant: [v2 Higher Bandwidth]
  • Reset Method: [nodemcu]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [160MHz]
  • Upload Using: [SERIAL]
  • Upload Speed: [460800] (serial upload only)

Problem Description

When I make https.GET not the all data received gets read into payload.

ESP8266Http library returms read Timeout

  • [HTTP-Client][returnError] error(-11): read Timeout

https.setTimeout(10000); does not help

Sending same query in web browser, reply is received within 2 seconds always.

Full XML response is around 3700 bytes, but only part of it is in payload (ie. some 1200 bytes but it varies from 0...3700) despite that HTTP_CODE is 200 and [HTTP-Client] read chunk len is 3701

CODE:

    WiFiClientSecure *client = new WiFiClientSecure;
    int httpCode;
    if (client) {
      client->setInsecure();

          Serial.println(String(F("[ENTS]: Today url:")) + String(url));
          if (https.begin(*client, url)) {
            https.addHeader("Content-Type", "application/xml");
https.setTimeout(10000);
            httpCode = https.GET();
            Serial.println(String(F("[ENTS]: HTTP_CODE: ")) + String(httpCode));
            if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY) {
              String payload = https.getString();
              Serial.println(String(F("[ENTS]: Length="))+String(payload.length()));
              Serial.println(payload);

### Debug printed with myown and HTTP_CLIENT DEBUG

[ENTS]: Today url:https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202302262300&periodEnd=202302272300

[HTTP-Client][begin] url: https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202302262300&periodEnd=202302272300

[HTTP-Client][begin] host: web-api.tp.entsoe.eu port: 443 url: /api?securityToken=XXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202302262300&periodEnd=202302272300

[HTTP-Client][sendRequest] type: 'GET' redirCount: 0
[HTTP-Client] connected to web-api.tp.entsoe.eu:443
[HTTP-Client] sending request header
-----
GET /api?securityToken=XXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202302262300&periodEnd=202302272300 HTTP/1.1
Host: web-api.tp.entsoe.eu
User-Agent: ESP8266HTTPClient
Accept-Encoding: identity;q=1,chunked;q=0.1,*;q=0
Connection: keep-alive
Content-Type: application/xml
Content-Length: 0

-----
[HTTP-Client][handleHeaderResponse] RX: 'HTTP/1.1 200 OK
'
[HTTP-Client][handleHeaderResponse] RX: 'Date: Mon, 27 Feb 2023 17:17:21 GMT
'
[HTTP-Client][handleHeaderResponse] RX: 'Server: Apache
'
[HTTP-Client][handleHeaderResponse] RX: 'Strict-Transport-Security: max-age=31536000 ; includeSubDomains
'
[HTTP-Client][handleHeaderResponse] RX: 'X-Powered-By: Undertow/1
'
[HTTP-Client][handleHeaderResponse] RX: 'Keep-Alive: timeout=5, max=100
'
[HTTP-Client][handleHeaderResponse] RX: 'Connection: Keep-Alive
'
[HTTP-Client][handleHeaderResponse] RX: 'Transfer-Encoding: chunked
'
[HTTP-Client][handleHeaderResponse] RX: 'Content-Type: text/xml
'
[HTTP-Client][handleHeaderResponse] RX: '
'
[HTTP-Client][handleHeaderResponse] code: 200
[HTTP-Client][handleHeaderResponse] Transfer-Encoding: chunked
[ENTS]: HTTP_CODE: 200
[HTTP-Client] read chunk len: 3701
[HTTP-Client][returnError] error(-11): read Timeout
[HTTP-Client][returnError] tcp stop
[ENTS]: Length=1260
<?xml version="1.0" encoding="UTF-8"?>
<Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:0">
	<mRID>d2145fefc7324f33a62e9ce82a4f3a17</mRID>
	<revisionNumber>1</revisionNumber>
	<type>A44</type>
	<sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID>
	<sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type>
	<receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID>
	<receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type>
	<createdDateTime>2023-02-27T17:17:22Z</createdDateTime>
	<period.timeInterval>
		<start>2023-02-26T23:00Z</start>
		<end>2023-02-27T23:00Z</end>
	</period.timeInterval>
	<TimeSeries>
		<mRID>1</mRID>
		<businessType>A62</businessType>
		<in_Domain.mRID codingScheme="A01">10Y1001A1001A46L</in_Domain.mRID>
		<out_Domain.mRID codingScheme="A01">10Y1001A1001A46L</out_Domain.mRID>
		<currency_Unit.name>EUR</currency_Unit.name>
		<price_Measure_Unit.name>MWH</price_Measure_Unit.name>
		<curveType>A01</curveType>
			<Period>
				<timeInterval>
					<start>2023-02-26T23:00Z</start>
					<end>2023-02-27T23:00Z</end>
				</timeInterval>
			

 			

TobbeG avatar Feb 27 '23 17:02 TobbeG

[HTTP-Client] read chunk len: 3701 [HTTP-Client][returnError] error(-11): read Timeout

Are there 10secs or only the default 5secs between these two lines ?

d-a-v avatar Feb 27 '23 17:02 d-a-v

It's 10 sec

19:23:02.769 -> [ENTS]: HTTP_CODE: 200 19:23:02.769 -> [HTTP-Client] read chunk len: 3701 19:23:12.735 -> [HTTP-Client][returnError] error(-11): read Timeout 19:23:12.735 -> [HTTP-Client][returnError] tcp stop 19:23:12.781 -> [ENTS]: Length=236

TobbeG avatar Feb 27 '23 18:02 TobbeG

Can you restart with SSL+HTTP_CLIENT debug option enabled ?

d-a-v avatar Mar 01 '23 11:03 d-a-v

Same ERROR - Extract of full debug print (For full debug print, se end of this comment

  1. Http code=200 = OK
  2. Read length=3697 OK
  3. Timeout? error -11, why??
  4. Then payload length only 1772??

DEBUG extract 00:34:37.799 -> [HTTP-Client][handleHeaderResponse] code: 200 00:34:37.799 -> [HTTP-Client][handleHeaderResponse] Transfer-Encoding: chunked 00:34:37.799 -> [ENTS]: HTTP_CODE: 200 00:34:37.799 -> [HTTP-Client] read chunk len: 3697 00:34:47.804 -> [HTTP-Client][returnError] error(-11): read Timeout 00:34:47.804 -> [HTTP-Client][returnError] tcp stop 00:34:47.804 -> [ENTS]: Length=1772

CODE: if (https.begin(*client, url)) { https.addHeader("Content-Type", "application/xml"); https.setTimeout(10000); httpCode = https.GET(); printDEBUGln(String(F("[ENTS]: HTTP_CODE: ")) + String(httpCode)); if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY) { String payload = https.getString(); printDEBUGln(String(F("[ENTS]: Length="))+String(payload.length()));

Full Serial DEBUG print 00:34:36.621 -> [ENTS]: Today url:https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303022300&periodEnd=202303032300 00:34:36.621 -> [HTTP-Client][begin] url: https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303022300&periodEnd=202303032300 00:34:36.668 -> [HTTP-Client][begin] host: web-api.tp.entsoe.eu port: 443 url: /api?securityToken=XXXXXXXXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303022300&periodEnd=202303032300 00:34:36.668 -> [HTTP-Client][sendRequest] type: 'GET' redirCount: 0 00:34:36.715 -> BSSL:_connectSSL: start connection 00:34:36.762 -> BSSL:CERT: 30 82 06 35 30 82 05 1d a0 03 02 01 02 02 11 00 b0 5a 57 9a 0e 44 dc e3 94 aa ed cd 15 bd 8e af 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 81 8f 31 0b 30 09 06 03 55 04 06 13 02 47 42 31 1b 30 19 06 03 55 04 08 13 12 47 72 65 61 74 65 72 20 4d 61 6e 63 68 65 73 74 65 72 31 10 30 0e 06 03 55 04 07 13 07 53 61 6c 66 6f 72 64 31 18 30 16 06 03 55 04 0a 13 0f 53 65 63 74 69 67 6f 20 4c 69 6d 69 74 65 64 31 37 30 35 06 03 55 04 03 13 2e 53 65 63 74 69 67 6f 20 52 53 41 20 44 6f 6d 61 69 6e 20 56 61 6c 69 64 61 74 69 6f 6e 20 53 65 63 75 72 65 20 53 65 72 76 65 72 20 43 41 30 1e 17 0d 32 32 30 33 32 33 30 30 30 30 30 30 5a 17 0d 32 33 30 34 32 33 32 33 35 39 35 39 5a 30 19 31 17 30 15 06 03 55 04 03 0c 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 22 00:34:36.809 -> BSSL:CERT: 30 0d 06 09 2a 86 48 86 f7 0d 01 01 01 05 00 03 82 01 0f 00 30 82 01 0a 02 82 01 01 00 ae 58 e2 6d 26 30 32 af c8 3a 7e e5 14 8b cf d4 4b 37 df 1d 31 af 95 fb 33 e3 62 ca c0 de 1e 2e f5 2b 11 5a 27 cb f6 b3 db 96 32 9b 6f 7b fc b6 53 13 7d 56 2d 5b 73 9b 1c 53 57 69 0d f0 da 9d 14 d6 fc 6a c0 52 1b 2d a3 5d ea f3 7e b2 24 03 d4 58 35 b3 a2 c8 e8 9e c9 4d 41 79 69 26 01 3a 52 86 8d 66 a8 0b 03 5b ef ad ae 67 10 df 53 98 3e d2 86 7e 69 40 e5 0f dd 25 58 7e 04 40 15 23 58 b1 84 6a 12 a5 ed 68 7c cc 59 e6 de b2 d6 c9 aa 36 67 22 1e e9 0b 5f 7e 6b 9a 8e 68 c6 79 c7 86 b2 5b f8 0c 7a fd 6c f0 6a bf 21 5b af f7 57 04 2a 36 53 89 a4 ad 07 dc b3 f5 47 40 a6 ff e4 b9 1d 13 51 c5 e7 6b a2 21 9c be 90 f6 3e 4f 84 8a 48 c1 6c ba 6a b5 4a 86 16 34 dd 28 1f 0a e8 de b9 6c 00:34:36.904 -> BSSL:CERT: 8a 74 94 1f 01 28 cb f5 9f 11 40 c6 73 e1 fc b6 8f e0 a1 46 6d 46 aa 6a 6a b3 73 bf 3d 02 03 01 00 01 a3 82 02 ff 30 82 02 fb 30 1f 06 03 55 1d 23 04 18 30 16 80 14 8d 8c 5e c4 54 ad 8a e1 77 e9 9b f9 9b 05 e1 b8 01 8d 61 e1 30 1d 06 03 55 1d 0e 04 16 04 14 f4 d0 b1 4b e2 98 a5 44 13 a9 7b c0 e6 6e 1a 57 3d 93 00 f2 30 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 05 a0 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 00 30 1d 06 03 55 1d 25 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 06 08 2b 06 01 05 05 07 03 02 30 49 06 03 55 1d 20 04 42 30 40 30 34 06 0b 2b 06 01 04 01 b2 31 01 02 02 07 30 25 30 23 06 08 2b 06 01 05 05 07 02 01 16 17 68 74 74 70 73 3a 2f 2f 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 43 50 53 30 08 06 06 67 81 0c 01 02 01 30 81 84 06 08 2b 06 01 05 05 07 01 01 04 00:34:36.950 -> BSSL:CERT: 78 30 76 30 4f 06 08 2b 06 01 05 05 07 30 02 86 43 68 74 74 70 3a 2f 2f 63 72 74 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 53 65 63 74 69 67 6f 52 53 41 44 6f 6d 61 69 6e 56 61 6c 69 64 61 74 69 6f 6e 53 65 63 75 72 65 53 65 72 76 65 72 43 41 2e 63 72 74 30 23 06 08 2b 06 01 05 05 07 30 01 86 17 68 74 74 70 3a 2f 2f 6f 63 73 70 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 30 27 06 03 55 1d 11 04 20 30 1e 82 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 82 0c 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 7f 06 0a 2b 06 01 04 01 d6 79 02 04 02 04 82 01 6f 04 82 01 6b 01 69 00 76 00 ad f7 be fa 7c ff 10 c8 8b 9d 3d 9c 1e 3e 18 6a b4 67 29 5d cf b1 0c 24 ca 85 86 34 eb dc 82 8a 00 00 01 7f b7 3e e6 44 00 00 04 03 00 47 30 45 02 20 18 94 48 0b c7 0a 64 f9 77 13 a1 38 21 80 75 00:34:37.045 -> BSSL:CERT: 8d 8f b2 f2 f9 cf 0a 44 9f ef 69 9f e9 36 1f 65 59 02 21 00 f5 b4 3e ff 15 e1 e9 21 c1 05 9d 51 98 48 c6 d8 50 38 84 2f df e9 62 15 d8 3c 0f 19 15 c5 68 37 00 77 00 7a 32 8c 54 d8 b7 2d b6 20 ea 38 e0 52 1e e9 84 16 70 32 13 85 4d 3b d2 2b c1 3a 57 a3 52 eb 52 00 00 01 7f b7 3e e6 1a 00 00 04 03 00 48 30 46 02 21 00 f0 93 dd a6 65 59 dd e6 0a 51 3b c9 14 7d b9 58 0d 6f 65 14 1b 8c d7 37 d3 11 be 1e ab 92 e1 64 02 21 00 94 cc f5 57 44 b2 75 aa 4c 7d c5 b1 0d 0d e2 17 80 d3 57 14 f8 e9 f1 11 7d ad b9 f9 e1 ca 35 ba 00 76 00 e8 3e d0 da 3e f5 06 35 32 e7 57 28 bc 89 6b c9 03 d3 cb d1 11 6b ec eb 69 e1 77 7d 6d 06 bd 6e 00 00 01 7f b7 3e e5 f6 00 00 04 03 00 47 30 45 02 21 00 a2 94 71 1c 2d 92 5d ef 3c 31 cf c0 d7 fb c8 4b 9c 2c 38 fd 91 3c fd ff a2 fe b1 81 19 00:34:37.092 -> BSSL:CERT: 7f 98 b7 02 20 1a f0 c9 07 74 cc 1d f9 1a ae 12 0e cb 67 12 95 8b 21 04 27 d7 76 5c 7d ee 98 eb 05 06 24 7e 1c 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 03 82 01 01 00 b6 4a b9 7c fb 32 b3 ad e3 e5 72 34 94 9a fd ad 70 92 7e fb a5 f7 19 f6 21 2a 7d 6e b4 2f e5 84 bc df 00 78 98 c4 fe 81 52 0c 97 64 24 30 94 ce d6 0a bc ba 1c 5b de 36 03 00 57 28 b1 c4 f6 41 23 c4 45 6d af 2c 92 15 2c 00 70 bc d7 13 a3 31 c8 e1 7c 28 c4 ce 4f af 4f 7f eb e0 ce 7b 02 6e 1a 89 eb e0 5e 93 c6 ee 94 b2 5b 93 ef 9b fc 2f b6 87 9d 07 dd 06 8b 8e 3c e9 90 d0 6b fa b8 d1 92 38 6f 74 3a b3 14 49 f2 23 79 cd c9 65 76 c2 f8 5f 3c 74 2a 3f 40 f6 3b 09 61 80 d1 fc 32 10 75 45 9b 8d 87 57 2a 33 2e e7 09 c2 a9 9e bb 62 03 4b 2d d9 b8 c8 8d 62 b1 4d 7a 06 ce 10 e5 31 52 02 08 f0 1d f7 1b 00:34:37.186 -> BSSL:CERT: 9d 0b c7 e5 1f c8 e0 de be 07 f4 7e 6d a3 72 38 b1 30 e0 f7 ab ec 8e f8 b5 8d 3c a2 bf d1 33 e9 e3 66 8b 1a ae ae 93 d2 16 9d 38 fa 74 56 e2 88 65 42 ae d8 b4 40 37 34 fe 00:34:37.516 -> BSSL:Connected! 00:34:37.516 -> [HTTP-Client] connected to web-api.tp.entsoe.eu:443 00:34:37.516 -> [HTTP-Client] sending request header 00:34:37.516 -> ----- 00:34:37.516 -> GET /api?securityToken=XXXXXXXXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303022300&periodEnd=202303032300 HTTP/1.1 00:34:37.563 -> Host: web-api.tp.entsoe.eu 00:34:37.563 -> User-Agent: ESP8266HTTPClient 00:34:37.563 -> Accept-Encoding: identity;q=1,chunked;q=0.1,*;q=0 00:34:37.563 -> Connection: keep-alive 00:34:37.563 -> Content-Type: application/xml 00:34:37.563 -> Content-Length: 0 00:34:37.563 -> 00:34:37.563 -> ----- 00:34:37.705 -> [HTTP-Client][handleHeaderResponse] RX: 'HTTP/1.1 200 OK ' 00:34:37.705 -> [HTTP-Client][handleHeaderResponse] RX: 'Date: Thu, 02 Mar 2023 23:34:38 GMT ' 00:34:37.752 -> [HTTP-Client][handleHeaderResponse] RX: 'Server: Apache ' 00:34:37.752 -> [HTTP-Client][handleHeaderResponse] RX: 'Strict-Transport-Security: max-age=31536000 ; includeSubDomains ' 00:34:37.752 -> [HTTP-Client][handleHeaderResponse] RX: 'X-Powered-By: Undertow/1 ' 00:34:37.752 -> [HTTP-Client][handleHeaderResponse] RX: 'Keep-Alive: timeout=5, max=100 ' 00:34:37.752 -> [HTTP-Client][handleHeaderResponse] RX: 'Connection: Keep-Alive ' 00:34:37.752 -> [HTTP-Client][handleHeaderResponse] RX: 'Transfer-Encoding: chunked ' 00:34:37.752 -> [HTTP-Client][handleHeaderResponse] RX: 'Content-Type: text/xml ' 00:34:37.799 -> [HTTP-Client][handleHeaderResponse] RX: ' ' 00:34:37.799 -> [HTTP-Client][handleHeaderResponse] code: 200 00:34:37.799 -> [HTTP-Client][handleHeaderResponse] Transfer-Encoding: chunked 00:34:37.799 -> [ENTS]: HTTP_CODE: 200 00:34:37.799 -> [HTTP-Client] read chunk len: 3697 00:34:47.804 -> [HTTP-Client][returnError] error(-11): read Timeout 00:34:47.804 -> [HTTP-Client][returnError] tcp stop 00:34:47.804 -> [ENTS]: Length=1772 00:34:47.804 -> 00:34:47.804 -> <Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:0"> 00:34:47.804 -> <mRID>6f868221411049ac98799f046882a530</mRID> 00:34:47.804 -> <revisionNumber>1</revisionNumber> 00:34:47.804 -> A44 00:34:47.804 -> <sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID> 00:34:47.851 -> <sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type> 00:34:47.851 -> <receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID> 00:34:47.851 -> <receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type> 00:34:47.851 -> <createdDateTime>2023-03-02T23:34:38Z</createdDateTime> 00:34:47.851 -> <period.timeInterval> 00:34:47.851 -> 2023-03-02T23:00Z 00:34:47.851 -> 2023-03-03T23:00Z 00:34:47.851 -> </period.timeInterval> 00:34:47.851 -> <TimeSeries> 00:34:47.851 -> <mRID>1</mRID> 00:34:47.851 -> <businessType>A62</businessType> 00:34:47.898 -> <in_Domain.mRID codingScheme="A01">10Y1001A1001A46L</in_Domain.mRID> 00:34:47.898 -> <out_Domain.mRID codingScheme="A01">10Y1001A1001A46L</out_Domain.mRID> 00:34:47.898 -> <currency_Unit.name>EUR</currency_Unit.name> 00:34:47.898 -> <price_Measure_Unit.name>MWH</price_Measure_Unit.name> 00:34:47.898 -> <curveType>A01</curveType> 00:34:47.898 -> <Period> 00:34:47.898 -> <timeInterval> 00:34:47.898 -> 2023-03-02T23:00Z 00:34:47.898 -> 2023-03-03T23:00Z 00:34:47.898 -> </timeInterval> 00:34:47.898 -> PT60M 00:34:47.898 -> <Point> 00:34:47.898 -> 1 00:34:47.898 -> <price.amount>21.53</price.amount> 00:34:47.898 -> </Point> 00:34:47.898 -> <Point> 00:34:47.945 -> 2 00:34:47.945 -> <price.amount>21.54</price.amount> 00:34:47.945 -> </Point> 00:34:47.945 -> <Point> 00:34:47.945 -> 3 00:34:47.945 -> <price.amount>22.00</price.amount> 00:34:47.945 -> </Point> 00:34:47.945 -> <Point> 00:34:47.945 -> 4 00:34:47.945 -> <price.amount>22.52</price.amount> 00:34:47.945 -> </Point> 00:34:47.945 -> <Point> 00:34:47.945 -> 5 00:34:47.945 -> <price.amount>23.49</price.amount> 00:34:47.945 -> </Po 00:34:47.945 -> [ENTS]: DATA 0 <price.amount>21.53</price.amount 00 237.26 21.53 00:34:47.945 -> [ENTS]: DATA 0 <price.amount>21.54</price.amount 01 237.37 21.54 00:34:47.945 -> [ENTS]: DATA 0 <price.amount>22.00</price.amount 02 242.44 22.00 00:34:47.992 -> [ENTS]: DATA 0 <price.amount>22.52</price.amount 03 248.17 22.52 00:34:47.992 -> [ENTS]: DATA 0 <price.amount>23.49</price.amount 04 258.86 23.49 00:34:47.992 -> [ENTS]: DATA 0 ="1.0" encoding="UTF-8"?> 00:34:47.992 -> <Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:0"> 00:34:47.992 -> <mRID>6f868221411049ac98799f046882a530</mRID> 00:34:47.992 -> <revisionNumber>1</revisionNumber> 00:34:47.992 -> A44 00:34:47.992 -> <sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID> 00:34:47.992 -> <sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type> 00:34:48.039 -> <receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID> 00:34:48.039 -> <receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type> 00:34:48.039 -> <createdDateTime>2023-03-02T23:34:38Z</createdDateTime> 00:34:48.039 -> <period.timeInterval> 00:34:48.039 -> 2023-03-02T23:00Z 00:34:48.039 -> 2023-03-03T23:00Z 00:34:48.039 -> </period.timeInterval> 00:34:48.039 -> <TimeSeries> 00:34:48.039 -> <mRID>1</mRID> 00:34:48.039 -> <businessType>A62</businessType> 00:34:48.039 -> <in_Domain.mRID codingScheme="A01">10Y1001A1001A46L</in_Domain.mRID> 00:34:48.086 -> <out_Domain.mRID codingScheme="A01">10Y1001A1001A46L</out_Domain.mRID> 00:34:48.086 -> <currency_Unit.name>EUR</currency_Unit.name> 00:34:48.086 -> <price_Measure_Unit.name>MWH</price_Measure_Unit.name> 00:34:48.086 -> <curveType>A01</curveType> 00:34:48.086 -> <Period> 00:34:48.086 -> <timeInterval> 00:34:48.086 -> 2023-03-02T23:00Z 00:34:48.086 -> 2023-03-03T23:00Z 00:34:48.086 -> </timeInterval> 00:34:48.086 -> PT60M 00:34:48.086 -> <Point> 00:34:48.086 -> 1 00:34:48.086 -> <price.amount>21.53</price.amount> 00:34:48.086 -> </Point> 00:34:48.086 -> <Point> 00:34:48.086 -> 2 00:34:48.086 -> <price.amount>21.54</price.amount> 00:34:48.134 -> </Point> 00:34:48.134 -> <Point> 00:34:48.134 -> 3 00:34:48.134 -> <price.amount>22.00</price.amount> 00:34:48.134 -> </Point> 00:34:48.134 -> <Point> 00:34:48.134 -> 4 00:34:48.134 -> <price.amount>22.52</price.amount> 00:34:48.134 -> </Point> 00:34:48.134 -> <Point> 00:34:48.134 -> 5 00:34:48.134 -> <price.amount>23.49</price.amount> 00:34:48.134 -> </Po[ENTS]: Today payload contained: 5 00:34:48.134 -> [HTTP-Client][end] tcp is closed

TobbeG avatar Mar 02 '23 23:03 TobbeG

I tried to reproduce this bug without success. #8885 permits to run ssl servers with 4KB chunked answers that are correctly read by the BasicHttpsClient example. If you have another ssl+chunked webserver that we can try ouselves (or a way to get a temporary token with https://web-api.tp.entsoe.eu), we'll be happy to try and understand what's going on.

d-a-v avatar Mar 10 '23 20:03 d-a-v

Thanks for continuing to work on this issue.

Can it be something in the dataproviders data that is not expected or?

I cannot share my Token but use this guide to obtain your own to continue test.

You can register and obtain API token free of charge, and here is the procedure:

  1. Go to https://transparency.entsoe.eu/ and click "Login" in upper right corner.
  2. A new window opens, click on "Register" at the bottom. Fill in your email and select a password, which must be at least 14 character long and must contain at least one special character (other than letter, digit or '@').
  3. You'll receive an email requesting you to confirm activation. Click the link in the email, and you're logged in.
  4. So far so good - normal stuff. Now you need to send them an email to request API token, that information is somewhat hidden in paragraph 2 on this page:https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html Send an email to @.*** with “Restful API access” in the subject line. Indicate the email address you entered during registration in the email body. The ENTSO-E Helpdesk will make their best efforts to respond to your request within 3 working days.
  5. They will normally respond next working day, I guess 3 days is to be on the safe side.

When you receive answer from them, there will be a button on your "My account settings" page. Click it to generate API token.

Regards Thorbjörn

TobbeG avatar Mar 11 '23 11:03 TobbeG

I think I'm wrestling with the same issue; I have a simple Get request that pulls back less than 800 bytes. Under v3.0.2 of the library it works fine. Upgrade to the latest (3.1.1) and it's truncating the result (which initially made it look like a JSON parsing error). Reverted back to 3.0.2 and it works fine again. Very basic code doing the work - even ChatGPT can spit this out ;)

WiFiClientSecure client;
...
client.print(String("GET ") + apiName + apiToken + " HTTP/1.1\r\n" +
          "Host: " + serverName + "\r\n" +
          "Connection: close\r\n\r\n");

// Read (and toss) the response header
while (client.connected()) {
  String line = client.readStringUntil('\n');
  if (line == "\r") {
    break;
  }
}

// Read the JSON response data
String rawJSON = client.readStringUntil('\n');

Under the 3.0.2 version, that rawJSON variable will hold the complete JSON string. Under 3.1.x the string is truncated or missing entirely.

Full source is here: https://github.com/VeryKross/BGBuddy

MSKRoss avatar Mar 15 '23 23:03 MSKRoss

while (client.connected())

context switch race happening? if tcp client is disconnected, tls engine is treated as disabled. if engine is disabled, we are not connected. available() would tell whether remaining data is available. (see #8330, same as basic WiFiClient method)

https://github.com/esp8266/Arduino/blob/84a59aa97fc3881231579127c5a0235b3e6cef3f/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp#L264-L267 https://github.com/esp8266/Arduino/blob/84a59aa97fc3881231579127c5a0235b3e6cef3f/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp#L260-L262 https://github.com/esp8266/Arduino/blob/84a59aa97fc3881231579127c5a0235b3e6cef3f/libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.cpp#L252-L258

mcspr avatar Mar 16 '23 06:03 mcspr

Let me know if there is a problem getting the TOKEN for tests. Appreciate the continuation of finding why Entso-e data is lost or truncated with getString(). Entso-e is a EU website providing data for electricity spotprices and I do really need to find a solution or workaround. Thank you!

TobbeG avatar Mar 16 '23 14:03 TobbeG

Building w/ -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT would give us some more info about the connection.

Not sure if above is related, since we check both available() and connected() in HTTP client code. API and a simple sketch work just fine printing to Serial, either as Stream or saving a temporary String. (also note that you probably want to use const String& as object type, string data is duplicated to your object so it is twice the mem used)

mcspr avatar Mar 20 '23 22:03 mcspr

Building w/ -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT would give us some more info about the connection.

Not sure if above is related, since we check both available() and connected() in HTTP client code. API and a simple sketch work just fine printing to Serial, either as Stream or saving a temporary String. (also note that you probably want to use const String& as object type, string data is duplicated to your object so it is twice the mem used)

Is the above related to my original issue?

Did you get and test with your own TOKEN and the Entsoe server?

https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303022300&periodEnd=202303032300

TobbeG avatar Mar 20 '23 22:03 TobbeG

Yes to both. Debug opts above should also dump ClientContext transfers info.

mcspr avatar Mar 20 '23 23:03 mcspr

Can you explain how to use const String& instead of String - do you mean "String payload" should be "const String payload"?

Debug data is enourmous and I get Exception(29) - tried to capture some here:

00:11:11.159 -> [ENTS]: Today url:https://web-api.tp.entsoe.eu/api?securityToken=ab4797bd-8010-4078-9325-4f3af043410f&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 00:11:11.159 -> [HTTP-Client][begin] url: https://web-api.tp.entsoe.eu/api?securityToken=ab4797bd-8010-4078-9325-4f3af043410f&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 00:11:11.205 -> [HTTP-Client][begin] host: web-api.tp.entsoe.eu port: 443 url: /api?securityToken=ab4797bd-8010-4078-9325-4f3af043410f&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 00:11:11.205 -> [HTTP-Client][sendRequest] type: 'GET' redirCount: 0 00:11:11.205 -> [hostByName] request IP for: web-api.tp.entsoe.eu 00:11:11.205 -> [hostByName] Host: web-api.tp.entsoe.eu IP: 62.209.222.31 00:11:11.205 -> :ref 1 00:11:11.252 -> BSSL:_connectSSL: start connection 00:11:11.252 -> 00:11:11.252 -> _iobuf_in: 0x3fff67f4 00:11:11.252 -> _iobuf_out: 0x3fffa94c 00:11:11.252 -> _iobuf_in_size: 16709 00:11:11.252 -> _iobuf_out_size: 597 00:11:11.298 -> :wr 225 0 00:11:11.298 -> :wrc 225 225 0 00:11:11.298 -> :ack 225 00:11:11.345 -> :rn 1460 00:11:11.345 -> :rch 1460, 1460 00:11:11.345 -> :rd 5, 2920, 0 00:11:11.345 -> :rdi 1460, 5 00:11:11.345 -> :rd 98, 2920, 5 00:11:11.345 -> :rdi 1455, 98 00:11:11.345 -> :rd 5, 2920, 103 00:11:11.345 -> :rdi 1357, 5 00:11:11.345 -> :rd 512, 2920, 108 00:11:11.345 -> :rdi 1352, 512 00:11:11.345 -> BSSL:CERT: 30 82 06 35 30 82 05 1d a0 03 02 01 02 02 11 00 b0 5a 57 9a 0e 44 dc e3 94 aa ed cd 15 bd 8e af 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 81 8f 31 0b 30 09 06 03 55 04 06 13 02 47 42 31 1b 30 19 06 03 55 04 08 13 12 47 72 65 61 74 65 72 20 4d 61 6e 63 68 65 73 74 65 72 31 10 30 0e 06 03 55 04 07 13 07 53 61 6c 66 6f 72 64 31 18 30 16 06 03 55 04 0a 13 0f 53 65 63 74 69 67 6f 20 4c 69 6d 69 74 65 64 31 37 30 35 06 03 55 04 03 13 2e 53 65 63 74 69 67 6f 20 52 53 41 20 44 6f 6d 61 69 6e 20 56 61 6c 69 64 61 74 69 6f 6e 20 53 65 63 75 72 65 20 53 65 72 76 65 72 20 43 41 30 1e 17 0d 32 32 30 33 32 33 30 30 30 30 30 30 5a 17 0d 32 33 30 34 32 33 32 33 35 39 35 39 5a 30 19 31 17 30 15 06 03 55 04 03 0c 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 22 00:11:11.392 -> :rd 5, 2920, 620 00:11:11.392 -> :rdi 840, 5 00:11:11.392 -> :rd 512, 2920, 625 00:11:11.392 -> :rdi 835, 512 00:11:11.437 -> BSSL:CERT: 30 0d 06 09 2a 86 48 86 f7 0d 01 01 01 05 00 03 82 01 0f 00 30 82 01 0a 02 82 01 01 00 ae 58 e2 6d 26 30 32 af c8 3a 7e e5 14 8b cf d4 4b 37 df 1d 31 af 95 fb 33 e3 62 ca c0 de 1e 2e f5 2b 11 5a 27 cb f6 b3 db 96 32 9b 6f 7b fc b6 53 13 7d 56 2d 5b 73 9b 1c 53 57 69 0d f0 da 9d 14 d6 fc 6a c0 52 1b 2d a3 5d ea f3 7e b2 24 03 d4 58 35 b3 a2 c8 e8 9e c9 4d 41 79 69 26 01 3a 52 86 8d 66 a8 0b 03 5b ef ad ae 67 10 df 53 98 3e d2 86 7e 69 40 e5 0f dd 25 58 7e 04 40 15 23 58 b1 84 6a 12 a5 ed 68 7c cc 59 e6 de b2 d6 c9 aa 36 67 22 1e e9 0b 5f 7e 6b 9a 8e 68 c6 79 c7 86 b2 5b f8 0c 7a fd 6c f0 6a bf 21 5b af f7 57 04 2a 36 53 89 a4 ad 07 dc b3 f5 47 40 a6 ff e4 b9 1d 13 51 c5 e7 6b a2 21 9c be 90 f6 3e 4f 84 8a 48 c1 6c ba 6a b5 4a 86 16 34 dd 28 1f 0a e8 de b9 6c 00:11:11.483 -> BSSL:CERT: 8a 74 94 1f 01 28 cb f5 9f 11 40 c6 73 e1 fc b6 8f e0 a1 46 6d 46 aa 6a 6a b3 73 bf 3d 02 03 01 00 01 a3 82 02 ff 30 82 02 fb 30 1f 06 03 55 1d 23 04 18 30 16 80 14 8d 8c 5e c4 54 ad 8a e1 77 e9 9b f9 9b 05 e1 b8 01 8d 61 e1 30 1d 06 03 55 1d 0e 04 16 04 14 f4 d0 b1 4b e2 98 a5 44 13 a9 7b c0 e6 6e 1a 57 3d 93 00 f2 30 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 05 a0 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 00 30 1d 06 03 55 1d 25 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 06 08 2b 06 01 05 05 07 03 02 30 49 06 03 55 1d 20 04 42 30 40 30 34 06 0b 2b 06 01 04 01 b2 31 01 02 02 07 30 25 30 23 06 08 2b 06 01 05 05 07 02 01 16 17 68 74 74 70 73 3a 2f 2f 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 43 50 53 30 08 06 06 67 81 0c 01 02 01 30 81 84 06 08 2b 06 01 05 05 07 01 01 04 00:11:11.576 -> :rd 5, 2920, 1137 00:11:11.576 -> :rdi 323, 5 00:11:11.576 -> :rd 512, 2920, 1142 00:11:11.576 -> :rdi 318, 318 00:11:11.576 -> :c 318, 1460, 2920 00:11:11.576 -> :rdi 1460, 194 00:11:11.576 -> BSSL:CERT: 78 30 76 30 4f 06 08 2b 06 01 05 05 07 30 02 86 43 68 74 74 70 3a 2f 2f 63 72 74 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 53 65 63 74 69 67 6f 52 53 41 44 6f 6d 61 69 6e 56 61 6c 69 64 61 74 69 6f 6e 53 65 63 75 72 65 53 65 72 76 65 72 43 41 2e 63 72 74 30 23 06 08 2b 06 01 05 05 07 30 01 86 17 68 74 74 70 3a 2f 2f 6f 63 73 70 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 30 27 06 03 55 1d 11 04 20 30 1e 82 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 82 0c 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 7f 06 0a 2b 06 01 04 01 d6 79 02 04 02 04 82 01 6f 04 82 01 6b 01 69 00 76 00 ad f7 be fa 7c ff 10 c8 8b 9d 3d 9c 1e 3e 18 6a b4 67 29 5d cf b1 0c 24 ca 85 86 34 eb dc 82 8a 00 00 01 7f b7 3e e6 44 00 00 04 03 00 47 30 45 02 20 18 94 48:rch 1460, 697 00:11:11.623 -> 0b c7 0a 64 f9 77 13 a1 38 21 80 75 00:11:11.623 -> BSSL:CERT: 8d 8f b2 f2 f9 cf 0a 44 9f ef 69 9f e9 36 1f 65 59 02 21 00 f5 b4 3e ff 15 e1 e9 21 c1 05 9d 51 98 48 c6 d8 50 38 84 2f df e9 62 15 d8 3c 0f 19 15 c5 68 37 00 77 00 7a 32 8c 54 d8 b7 2d b6 20 ea 38 e0 52 1e e9 84 16 70 32 13 85 4d 3b d2 2b c1 3a 57 a3 52 eb 52 00 00 01 7f b7 3e e6 1a 00 00 04 03 00 48 30 46 02 21 00 f0 93 dd a6 65 59 dd e6 0a 51 3b c9 14 7d b9 58 0d 6f 65 14 1b 8c d7 37 d3 11 be 1e ab 92 e1 64 02 21 00 94 cc f5 57 44 b2 75 aa 4c 7d c5 b1 0d 0d e2 17 80 d3 57 14 f8 e9 f1 11 7d ad b9 f9 e1 ca 35 ba 00 76 00 e8 3e d0 da 3e f5 06 35 32 e7 57 28 bc 89 6b c9 03 d3 cb d1 11 6b ec eb 69 e1 77 7d 6d 06 bd 6e 00 00 01 7f b7 3e e5 f6 00 00 04 03 00 47 30 45 02 21 00 a2 94 71 1c 2d 92 5d ef 3c 31 cf c0 d7 fb c8 4b 9c 2c 38 fd 91 3c fd ff a2 fe b1 81 19 00:11:11.715 -> :rd 5, 2157, 194 00:11:11.715 -> :rdi 1266, 5 00:11:11.715 -> :rd 512, 2157, 199 00:11:11.715 -> :rdi 1261, 512 00:11:11.715 -> BSSL:CERT: 7f 98 b7 02 20 1a f0 c9 07 74 cc 1d f9 1a ae 12 0e cb 67 12 95 8b 21 04 27 d7 76 5c 7d ee 98 eb 05 06 24 7e 1c 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 03 82 01 01 00 b6 4a b9 7c fb 32 b3 ad e3 e5 72 34 94 9a fd ad 70 92 7e fb a5 f7 19 f6 21 2a 7d 6e b4 2f e5 84 bc df 00 78 98 c4 fe 81 52 0c 97 64 24 30 94 ce d6 0a bc ba 1c 5b de 36 03 00 57 28 b1 c4 f6 41 23 c4 45 6d af 2c 92 15 2c 00 70 bc d7 13 a3 31 c8 e1 7c 28 c4 ce 4f af 4f 7f eb e0 ce 7b 02 6e 1a 89 eb e0 5e 93 c6 ee 94 b2 5b 93 ef 9b fc 2f b6 87 9d 07 dd 06 8b 8e 3c e9 90 d0 6b fa b8 d1 92 38 6f 74 3a b3 14 49 f2 23 79 cd c9 65 76 c2 f8 5f 3c 74 2a 3f 40 f6 3b 09 61 80 d1 fc 32 10 75 45 9b 8d 87 57 2a 33 2e e7 09 c2 a9 9e bb 62 03 4b 2d d9 b8 c8 8d 62 b1 4d 7a 06 ce 10 e5 31 52 02 08 f0 1d f7 1b 00:11:11.762 -> BSSL:CERT: 9d 0b c7 e5 1f c8 e0 de be 07 f4 7e 6d a3 72 38 b1 30 e0 f7 ab ec 8e f8 b5 8d 3c a2 bf d1 33 e9 e3 66 8b 1a ae ae 93 d2 16 9d 38 fa 74 56 e2 88 65 42 ae d8 b4 40 37 34 fe 00:11:11.809 -> :rd 5, 2157, 711 00:11:11.809 -> :rdi 749, 5 00:11:11.809 -> :rd 512, 2157, 716 00:11:11.809 -> :rdi 744, 512 00:11:11.809 -> :rd 5, 2157, 1228 00:11:11.809 -> :rdi 232, 5 00:11:11.809 -> :rd 512, 2157, 1233 00:11:11.809 -> :rdi 227, 227 00:11:11.809 -> :c 227, 1460, 2157 00:11:11.809 -> :rdi 697, 285 00:11:11.809 -> :rd 5, 697, 285 00:11:11.809 -> :rdi 412, 5 00:11:11.809 -> :rd 93, 697, 290 00:11:11.809 -> :rdi 407, 93 00:11:11.809 -> :rd 5, 697, 383 00:11:11.809 -> :rdi 314, 5 00:11:11.809 -> :rd 300, 697, 388 00:11:11.809 -> :rdi 309, 300 00:11:11.948 -> :rd 5, 697, 688 00:11:11.948 -> :rdi 9, 5 00:11:11.948 -> :rd 4, 697, 693 00:11:11.948 -> :rdi 4, 4 00:11:11.948 -> :c0 4, 697 00:11:12.089 -> :wr 42 0 00:11:12.089 -> :wrc 42 42 0 00:11:12.089 -> :wr 6 0 00:11:12.089 -> :wrc 6 6 0 00:11:12.089 -> :wr 45 0 00:11:12.089 -> :wrc 45 45 0 00:11:12.134 -> :ack 42 00:11:12.180 -> :ack 51 00:11:12.180 -> :rn 51 00:11:12.180 -> :rd 5, 51, 0 00:11:12.180 -> :rdi 51, 5 00:11:12.180 -> :rd 1, 51, 5 00:11:12.180 -> :rdi 46, 1 00:11:12.180 -> :rd 5, 51, 6 00:11:12.180 -> :rdi 45, 5 00:11:12.180 -> :rd 40, 51, 11 00:11:12.180 -> :rdi 40, 40 00:11:12.180 -> :c0 40, 51 00:11:12.180 -> BSSL:Connected! 00:11:12.180 -> [HTTP-Client] connected to web-api.tp.entsoe.eu:443 00:11:12.180 -> [HTTP-Client] sending request header 00:11:12.180 -> ----- 00:11:12.180 -> GET /api?securityToken=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 HTTP/1.1 00:11:12.227 -> Host: web-api.tp.entsoe.eu 00:11:12.227 -> User-Agent: ESP8266HTTPClient 00:11:12.227 -> Accept-Encoding: identity;q=1,chunked;q=0.1,*;q=0 00:11:12.227 -> Connection: keep-alive 00:11:12.227 -> Content-Type: application/xml 00:11:12.227 -> Content-Length: 0 00:11:12.227 -> 00:11:12.227 -> ----- 00:11:12.227 -> :wr 405 0 00:11:12.227 -> :wrc 405 405 0 00:11:12.319 -> :ack 405 00:11:12.554 -> :rn 1460 00:11:12.554 -> :rd 5, 1460, 0 00:11:12.554 -> :rdi 1460, 5 00:11:12.554 -> :rch 1460, 1460 00:11:12.554 -> :rch 2920, 1288 00:11:12.554 -> :rd 536, 4208, 5 00:11:12.554 -> :rdi 1455, 536 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'HTTP/1.1 200 OK ' 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'Date: Mon, 20 Mar 2023 23:11:12 GMT ' 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'Server: Apache ' 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'Strict-Transport-Security: max-age=31536000 ; includeSubDomains ' 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'X-Powered-By: Undertow/1 ' 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'Keep-Alive: timeout=5, max=100 ' 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'Connection: Keep-Alive ' 00:11:12.600 -> [HTTP-Client][handleHeaderResponse] RX: 'Transfer-Encoding: chunked ' 00:11:12.647 -> [HTTP-Client][handleHeaderResponse] RX: 'Content-Type: text/xml ' 00:11:12.647 -> [HTTP-Client][handleHeaderResponse] RX: ' ' 00:11:12.647 -> [HTTP-Client][handleHeaderResponse] code: 200 00:11:12.647 -> [HTTP-Client][handleHeaderResp:rch 4208, 34 00:11:12.647 -> onse] Transfer-Encoding: chunked 00:11:12.647 -> [ENTS]: HTTP_CODE: 200 00:11:12.647 -> [HTTP-Client] read chunk len: 3698 00:11:12.647 -> :rd 5, 4242, 541 00:11:12.647 -> :rdi 919, 5 00:11:12.647 -> :rd 536, 4242, 546 00:11:12.647 -> :rdi 914, 536 00:11:12.647 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.693 -> <s' 00:11:12.693 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.693 -> <s' 00:11:12.693 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.693 -> <s' 00:11:12.693 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.693 -> <s' 00:11:12.693 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.693 -> <s' 00:11:12.693 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.693 -> <s' 00:11:12.693 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.693 -> <s' 00:11:12.693 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.742 -> <s' 00:11:12.742 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.742 -> <s' 00:11:12.742 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.742 -> <s' 00:11:12.742 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.742 -> <s' 00:11:12.742 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.742 -> <s' 00:11:12.742 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.742 -> <s' 00:11:12.742 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.742 -> <s' 00:11:12.742 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.788 -> <s' 00:11:12.788 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.788 -> <s' 00:11:12.788 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.788 -> <s' 00:11:12.788 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.788 -> <s' 00:11:12.788 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.788 -> <s' 00:11:12.788 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.788 -> <s' 00:11:12.788 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.835 -> <s' 00:11:12.835 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.835 -> <s' 00:11:12.835 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.835 -> <s' 00:11:12.835 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.835 -> <s' 00:11:12.835 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.835 -> <s' 00:11:12.835 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.835 -> <s' 00:11:12.835 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.835 -> <s' 00:11:12.835 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.882 -> <s' 00:11:12.882 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.882 -> <s' 00:11:12.882 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.882 -> <s' 00:11:12.882 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.882 -> <s' 00:11:12.882 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.882 -> <s' 00:11:12.882 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.882 -> <s' 00:11:12.882 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.882 -> <s' 00:11:12.930 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.930 -> <s' 00:11:12.930 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.930 -> <s' 00:11:12.930 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.930 -> <s' 00:11:12.930 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.930 -> <s' 00:11:12.930 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.930 -> <s' 00:11:12.930 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.930 -> <s' 00:11:12.930 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.976 -> <s' 00:11:12.976 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.976 -> <s' 00:11:12.976 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.976 -> <s' 00:11:12.976 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:12.976 -> <s' 00:11:12.976 -> :urn 52 00:11:12.976 -> [MDNSResponder] _callProcess (7326, triggered by: 192.168.7.58) 00:11:12.976 -> [MDNSResponder] _parseMessage (Time: 7327 ms, heap: 344 bytes, from 192.168.7.58(5353), to 224.0.0.251(5353)) 00:11:12.976 -> :urd 2, 52, 0 00:11:12.976 -> :urd 1, 52, 2 00:11:12.976 -> :urd 1, 52, 3 00:11:12.976 -> :urd 2, 52, 4 00:11:12.976 -> :urd 2, 52, 6 00:11:13.022 -> :urd 2, 52, 8 00:11:13.022 -> :urd 2, 52, 10 00:11:13.022 -> [MDNSResponder] _parseMessage: Done (Succeeded after 24 ms, ate 0 bytes, remaining 344) 00:11:13.022 -> 00:11:13.022 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:13.022 -> <s' 00:11:13.022 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:13.022 -> <s' 00:11:13.022 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 00:11:13.022 -> <s' 00:11:13.022 -> 00:11:13.022 -> --------------- CUT HERE FOR EXCEPTION DECODER --------------- 00:11:13.022 -> 00:11:13.022 -> Exception (29): 00:11:13.022 -> epc1=0x4000df64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000 00:11:13.068 -> 00:11:13.068 -> >>>stack>>> 00:11:13.068 -> 00:11:13.068 -> ctx: sys 00:11:13.068 -> sp: 3fffec10 end: 3fffffb0 offset: 0190 00:11:13.068 -> 3fffeda0: 00000139 00000000 3ffeb1a1 00000008
00:11:13.068 -> 3fffedb0: 40104cff 0000003a 00000000 3ffef4b0
00:11:13.068 -> 3fffedc0: 40269173 3ffefb40 00000002 40269108
00:11:13.068 -> 3fffedd0: 00000002 402690af 00000002 40268204
00:11:13.068 -> 3fffede0: 4026822d 3fffee90 3ffefb40 0000001a
00:11:13.068 -> 3fffedf0: 40265c90 3fffee90 3ffef9e8 3ffef3e0
00:11:13.068 -> 3fffee00: 3ffed880 3fffee90 3fffee90 3fff169c
00:11:13.068 -> 3fffee10: 696d686f 34326f67 3fff1900 40100f0e
00:11:13.068 -> 3fffee20: 00000000 3ffe860c 3fff19f8 40100f0e
00:11:13.115 -> 3fffee30: 40261fe9 3ffe860c 0000001c 40101168
00:11:13.115 -> 3fffee40: ffffffda 3ffef4fc 3ffed890 3ffefb40
00:11:13.115 -> 3fffee50: 3ffeeae0 0000003a 00000000 4026698b
00:11:13.115 -> 3fffee60: 00000000 3fff1a94 ffffffda 00000000
00:11:13.115 -> 3fffee70: 00000000 3ffefb40 00000010 40101508
00:11:13.115 -> 3fffee80: 0000001c 00000000 00000000 402417b0
00:11:13.115 -> 3fffee90: 00000000

TobbeG avatar Mar 20 '23 23:03 TobbeG

Can you explain how to use const String& instead of String - do you mean "String payload" should be "const String payload"?

String payload = https.getString(); line. I mean the & (ampersand). http.getString() return type is const reference string, which you copy into payload object.

Debug data is enourmous and I get Exception(29) - tried to capture some here:

Disable extra stuff like MDNS? :u... logs, and its responder callbacks seem to happen simultaneously with the request.

mcspr avatar Mar 20 '23 23:03 mcspr

Can you explain how to use const String& instead of String - do you mean "String payload" should be "const String payload"?

String payload = https.getString(); line. I mean the & (ampersand). http.getString() return type is const reference string, which you copy into payload object.

Debug data is enourmous and I get Exception(29) - tried to capture some here:

Disable extra stuff like MDNS? :u... logs, and its responder callbacks seem to happen simultaneously with the request.

So it should be... or? const String payload = http.getString();

TobbeG avatar Mar 21 '23 00:03 TobbeG

const String& payload = http.getString();

mcspr avatar Mar 21 '23 00:03 mcspr

Code now: with const String& payload and also prints ESP.getFreeHeap() if (https.begin(*client, url)) { https.addHeader("Content-Type", "application/xml"); https.setTimeout(10000); httpCode = https.GET(); printDEBUGln(String(F("[ENTS]: HTTP_CODE: ")) + String(httpCode)); if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY) { Serial.println(String(F("0 - Free HEAP:")) + String(ESP.getFreeHeap()) ); const String& payload = https.getString(); printDEBUGln(String(F("[ENTS]: Length="))+String(payload.length())); printDEBUGln(payload);

This is repeats as an infinite loop until device crashes after timeout 10s 17:25:51.310 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval>

Debug print 17:25:45.482 -> [SYS ]: BOOT>> 17:25:45.482 -> [INFO]: DeviceType: Ohmigo.mini 17:25:45.482 -> [INFO]: DeviceID: 1129931 17:25:45.482 -> [INFO]: Version: 1.1.1 BUILD: Mar 21 2023 17:22:06 17:25:45.482 -> [INFO]: Flash: 1048576 17:25:45.482 -> [INFO]: FlashReal: 1048576 17:25:45.482 -> [INFO]: FlashSpeed MHz 40 17:25:45.529 -> 17:25:45.529 -> lfs_file_close: fd=0x3fff2910 17:25:45.529 -> [INFO]: DeviceName: mini 17:25:45.529 -> lfs_file_close: fd=0x3fff2910 17:25:45.529 -> lfs_file_close: fd=0x3fff28c0 17:25:45.529 -> [String] Reallocating large String(143 -> 144 bytes) 'ENTSOE_URL ... =<START>&p' 17:25:45.529 -> lfs_file_close: fd=0x3fff28c0 17:25:45.576 -> lfs_file_close: fd=0x3fff28c0 17:25:45.576 -> lfs_file_close: fd=0x3fff28c0 17:25:45.576 -> [WIFI]: Try 1 connecting to WiFi: ohmigo24wifi evt: 2 17:25:46.470 -> ...wifi evt: 0 17:25:49.567 -> wifi evt: 3 17:25:49.614 -> OK with RSSI:-36 17:25:49.614 -> :urn 48 17:25:49.614 -> :urd 48, 48, 0 17:25:49.661 -> lfs_file_close: fd=0x3fff28a0 17:25:49.661 -> [NTP ]: NTP = 1679419550 17:25:49.661 -> lfs_file_close: fd=0x3fff28a0 17:25:49.661 -> [NTP ]: Sync interval set to: 3600 seconds 17:25:49.661 -> lfs_file_close: fd=0x3fff28a0 17:25:49.661 -> [NTP ]: 2023-03-21 17:25:50 17:25:49.661 -> [FILE]: Total:65536 17:25:49.661 -> [FILE]: Used: 12288 17:25:49.661 -> [FILE]: 1129931.cfg - 1024 bytes 17:25:49.661 -> lfs_file_close: fd=0x3fff2968 17:25:49.661 -> [RUN ]: Runsecond is: 14 17:25:49.661 -> [SYS ]: IP:192.168.7.85 - Ready >> 17:25:49.661 -> lfs_file_close: fd=0x3fff3778 17:25:49.709 -> lfs_file_close: fd=0x3fff37a8 17:25:49.709 -> [CHK ]: License valid until: 2037-12-31 2023-03-21 17:25:49.709 -> [ENTS]: File today=0 tomorrow=0 17:25:49.709 -> 17:25:49.709 -> StackThunk malloc(6200) 17:25:49.709 -> StackThunk stack_thunk_ptr: 0x3fff392c 17:25:49.709 -> lfs_file_close: fd=0x3fff5180 17:25:49.709 -> [String] Reallocating large String(143 -> 144 bytes) 'ENTSOE_URL ... =<START>&p' 17:25:49.755 -> lfs_file_close: fd=0x3fff5180 17:25:49.755 -> [String] Reallocating large String(143 -> 144 bytes) 'ENTSOE_URL ... =<START>&p' 17:25:49.755 -> lfs_file_close: fd=0x3fff5230 17:25:49.755 -> [String] Reallocating large String(147 -> 176 bytes) 'https://we ... End=<STOP>' 17:25:49.755 -> lfs_file_close: fd=0x3fff5250 17:25:49.755 -> [String] Reallocating large String(176 -> 192 bytes) 'https://we ... End=<STOP>' 17:25:49.803 -> lfs_file_close: fd=0x3fff5340 17:25:49.803 -> lfs_file_close: fd=0x3fff5340 17:25:49.803 -> [ENTS]: Today url:https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 17:25:49.803 -> [HTTP-Client][begin] url: https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 17:25:49.849 -> [HTTP-Client][begin] host: web-api.tp.entsoe.eu port: 443 url: /api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 17:25:49.849 -> [HTTP-Client][sendRequest] type: 'GET' redirCount: 0 17:25:49.849 -> [hostByName] request IP for: web-api.tp.entsoe.eu 17:25:49.849 -> [hostByName] Host: web-api.tp.entsoe.eu IP: 62.209.222.31 17:25:49.849 -> :ref 1 17:25:49.897 -> BSSL:_connectSSL: start connection 17:25:49.897 -> 17:25:49.897 -> _iobuf_in: 0x3fff63ec 17:25:49.897 -> _iobuf_out: 0x3fffa544 17:25:49.897 -> _iobuf_in_size: 16709 17:25:49.897 -> _iobuf_out_size: 597 17:25:49.944 -> :wr 225 0 17:25:49.944 -> :wrc 225 225 0 17:25:49.991 -> :ack 225 17:25:49.991 -> :rn 1460 17:25:49.991 -> :rch 1460, 1460 17:25:49.991 -> :rch 2920, 697 17:25:49.991 -> :rd 5, 3617, 0 17:25:49.991 -> :rdi 1460, 5 17:25:49.991 -> :rd 98, 3617, 5 17:25:49.991 -> :rdi 1455, 98 17:25:49.991 -> :rd 5, 3617, 103 17:25:49.991 -> :rdi 1357, 5 17:25:49.991 -> :rd 512, 3617, 108 17:25:49.991 -> :rdi 1352, 512 17:25:49.991 -> BSSL:CERT: 30 82 06 35 30 82 05 1d a0 03 02 01 02 02 11 00 b0 5a 57 9a 0e 44 dc e3 94 aa ed cd 15 bd 8e af 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 81 8f 31 0b 30 09 06 03 55 04 06 13 02 47 42 31 1b 30 19 06 03 55 04 08 13 12 47 72 65 61 74 65 72 20 4d 61 6e 63 68 65 73 74 65 72 31 10 30 0e 06 03 55 04 07 13 07 53 61 6c 66 6f 72 64 31 18 30 16 06 03 55 04 0a 13 0f 53 65 63 74 69 67 6f 20 4c 69 6d 69 74 65 64 31 37 30 35 06 03 55 04 03 13 2e 53 65 63 74 69 67 6f 20 52 53 41 20 44 6f 6d 61 69 6e 20 56 61 6c 69 64 61 74 69 6f 6e 20 53 65 63 75 72 65 20 53 65 72 76 65 72 20 43 41 30 1e 17 0d 32 32 30 33 32 33 30 30 30 30 30 30 5a 17 0d 32 33 30 34 32 33 32 33 35 39 35 39 5a 30 19 31 17 30 15 06 03 55 04 03 0c 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 22 17:25:50.085 -> :rd 5, 3617, 620 17:25:50.085 -> :rdi 840, 5 17:25:50.085 -> :rd 512, 3617, 625 17:25:50.085 -> :rdi 835, 512 17:25:50.085 -> BSSL:CERT: 30 0d 06 09 2a 86 48 86 f7 0d 01 01 01 05 00 03 82 01 0f 00 30 82 01 0a 02 82 01 01 00 ae 58 e2 6d 26 30 32 af c8 3a 7e e5 14 8b cf d4 4b 37 df 1d 31 af 95 fb 33 e3 62 ca c0 de 1e 2e f5 2b 11 5a 27 cb f6 b3 db 96 32 9b 6f 7b fc b6 53 13 7d 56 2d 5b 73 9b 1c 53 57 69 0d f0 da 9d 14 d6 fc 6a c0 52 1b 2d a3 5d ea f3 7e b2 24 03 d4 58 35 b3 a2 c8 e8 9e c9 4d 41 79 69 26 01 3a 52 86 8d 66 a8 0b 03 5b ef ad ae 67 10 df 53 98 3e d2 86 7e 69 40 e5 0f dd 25 58 7e 04 40 15 23 58 b1 84 6a 12 a5 ed 68 7c cc 59 e6 de b2 d6 c9 aa 36 67 22 1e e9 0b 5f 7e 6b 9a 8e 68 c6 79 c7 86 b2 5b f8 0c 7a fd 6c f0 6a bf 21 5b af f7 57 04 2a 36 53 89 a4 ad 07 dc b3 f5 47 40 a6 ff e4 b9 1d 13 51 c5 e7 6b a2 21 9c be 90 f6 3e 4f 84 8a 48 c1 6c ba 6a b5 4a 86 16 34 dd 28 1f 0a e8 de b9 6c 17:25:50.132 -> BSSL:CERT: 8a 74 94 1f 01 28 cb f5 9f 11 40 c6 73 e1 fc b6 8f e0 a1 46 6d 46 aa 6a 6a b3 73 bf 3d 02 03 01 00 01 a3 82 02 ff 30 82 02 fb 30 1f 06 03 55 1d 23 04 18 30 16 80 14 8d 8c 5e c4 54 ad 8a e1 77 e9 9b f9 9b 05 e1 b8 01 8d 61 e1 30 1d 06 03 55 1d 0e 04 16 04 14 f4 d0 b1 4b e2 98 a5 44 13 a9 7b c0 e6 6e 1a 57 3d 93 00 f2 30 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 05 a0 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 00 30 1d 06 03 55 1d 25 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 06 08 2b 06 01 05 05 07 03 02 30 49 06 03 55 1d 20 04 42 30 40 30 34 06 0b 2b 06 01 04 01 b2 31 01 02 02 07 30 25 30 23 06 08 2b 06 01 05 05 07 02 01 16 17 68 74 74 70 73 3a 2f 2f 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 43 50 53 30 08 06 06 67 81 0c 01 02 01 30 81 84 06 08 2b 06 01 05 05 07 01 01 04 17:25:50.228 -> :rd 5, 3617, 1137 17:25:50.228 -> :rdi 323, 5 17:25:50.228 -> :rd 512, 3617, 1142 17:25:50.228 -> :rdi 318, 318 17:25:50.228 -> :c 318, 1460, 3617 17:25:50.228 -> :rdi 1460, 194 17:25:50.228 -> BSSL:CERT: 78 30 76 30 4f 06 08 2b 06 01 05 05 07 30 02 86 43 68 74 74 70 3a 2f 2f 63 72 74 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 53 65 63 74 69 67 6f 52 53 41 44 6f 6d 61 69 6e 56 61 6c 69 64 61 74 69 6f 6e 53 65 63 75 72 65 53 65 72 76 65 72 43 41 2e 63 72 74 30 23 06 08 2b 06 01 05 05 07 30 01 86 17 68 74 74 70 3a 2f 2f 6f 63 73 70 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 30 27 06 03 55 1d 11 04 20 30 1e 82 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 82 0c 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 7f 06 0a 2b 06 01 04 01 d6 79 02 04 02 04 82 01 6f 04 82 01 6b 01 69 00 76 00 ad f7 be fa 7c ff 10 c8 8b 9d 3d 9c 1e 3e 18 6a b4 67 29 5d cf b1 0c 24 ca 85 86 34 eb dc 82 8a 00 00 01 7f b7 3e e6 44 00 00 04 03 00 47 30 45 02 20 18 94 48 0b c7 0a 64 f9 77 13 a1 38 21 80 75 17:25:50.274 -> BSSL:CERT: 8d 8f b2 f2 f9 cf 0a 44 9f ef 69 9f e9 36 1f 65 59 02 21 00 f5 b4 3e ff 15 e1 e9 21 c1 05 9d 51 98 48 c6 d8 50 38 84 2f df e9 62 15 d8 3c 0f 19 15 c5 68 37 00 77 00 7a 32 8c 54 d8 b7 2d b6 20 ea 38 e0 52 1e e9 84 16 70 32 13 85 4d 3b d2 2b c1 3a 57 a3 52 eb 52 00 00 01 7f b7 3e e6 1a 00 00 04 03 00 48 30 46 02 21 00 f0 93 dd a6 65 59 dd e6 0a 51 3b c9 14 7d b9 58 0d 6f 65 14 1b 8c d7 37 d3 11 be 1e ab 92 e1 64 02 21 00 94 cc f5 57 44 b2 75 aa 4c 7d c5 b1 0d 0d e2 17 80 d3 57 14 f8 e9 f1 11 7d ad b9 f9 e1 ca 35 ba 00 76 00 e8 3e d0 da 3e f5 06 35 32 e7 57 28 bc 89 6b c9 03 d3 cb d1 11 6b ec eb 69 e1 77 7d 6d 06 bd 6e 00 00 01 7f b7 3e e5 f6 00 00 04 03 00 47 30 45 02 21 00 a2 94 71 1c 2d 92 5d ef 3c 31 cf c0 d7 fb c8 4b 9c 2c 38 fd 91 3c fd ff a2 fe b1 81 19 17:25:50.369 -> :rd 5, 2157, 194 17:25:50.369 -> :rdi 1266, 5 17:25:50.369 -> :rd 512, 2157, 199 17:25:50.369 -> :rdi 1261, 512 17:25:50.369 -> BSSL:CERT: 7f 98 b7 02 20 1a f0 c9 07 74 cc 1d f9 1a ae 12 0e cb 67 12 95 8b 21 04 27 d7 76 5c 7d ee 98 eb 05 06 24 7e 1c 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 03 82 01 01 00 b6 4a b9 7c fb 32 b3 ad e3 e5 72 34 94 9a fd ad 70 92 7e fb a5 f7 19 f6 21 2a 7d 6e b4 2f e5 84 bc df 00 78 98 c4 fe 81 52 0c 97 64 24 30 94 ce d6 0a bc ba 1c 5b de 36 03 00 57 28 b1 c4 f6 41 23 c4 45 6d af 2c 92 15 2c 00 70 bc d7 13 a3 31 c8 e1 7c 28 c4 ce 4f af 4f 7f eb e0 ce 7b 02 6e 1a 89 eb e0 5e 93 c6 ee 94 b2 5b 93 ef 9b fc 2f b6 87 9d 07 dd 06 8b 8e 3c e9 90 d0 6b fa b8 d1 92 38 6f 74 3a b3 14 49 f2 23 79 cd c9 65 76 c2 f8 5f 3c 74 2a 3f 40 f6 3b 09 61 80 d1 fc 32 10 75 45 9b 8d 87 57 2a 33 2e e7 09 c2 a9 9e bb 62 03 4b 2d d9 b8 c8 8d 62 b1 4d 7a 06 ce 10 e5 31 52 02 08 f0 1d f7 1b 17:25:50.416 -> BSSL:CERT: 9d 0b c7 e5 1f c8 e0 de be 07 f4 7e 6d a3 72 38 b1 30 e0 f7 ab ec 8e f8 b5 8d 3c a2 bf d1 33 e9 e3 66 8b 1a ae ae 93 d2 16 9d 38 fa 74 56 e2 88 65 42 ae d8 b4 40 37 34 fe 17:25:50.463 -> :rd 5, 2157, 711 17:25:50.463 -> :rdi 749, 5 17:25:50.463 -> :rd 512, 2157, 716 17:25:50.463 -> :rdi 744, 512 17:25:50.463 -> :rd 5, 2157, 1228 17:25:50.463 -> :rdi 232, 5 17:25:50.463 -> :rd 512, 2157, 1233 17:25:50.463 -> :rdi 227, 227 17:25:50.463 -> :c 227, 1460, 2157 17:25:50.463 -> :rdi 697, 285 17:25:50.463 -> :rd 5, 697, 285 17:25:50.463 -> :rdi 412, 5 17:25:50.463 -> :rd 93, 697, 290 17:25:50.463 -> :rdi 407, 93 17:25:50.463 -> :rd 5, 697, 383 17:25:50.463 -> :rdi 314, 5 17:25:50.463 -> :rd 300, 697, 388 17:25:50.463 -> :rdi 309, 300 17:25:50.557 -> :rd 5, 697, 688 17:25:50.557 -> :rdi 9, 5 17:25:50.557 -> :rd 4, 697, 693 17:25:50.557 -> :rdi 4, 4 17:25:50.557 -> :c0 4, 697 17:25:50.698 -> :wr 42 0 17:25:50.698 -> :wrc 42 42 0 17:25:50.745 -> :wr 6 0 17:25:50.745 -> :wrc 6 6 0 17:25:50.745 -> :wr 45 0 17:25:50.745 -> :wrc 45 45 0 17:25:50.792 -> :ack 42 17:25:50.839 -> :ack 51 17:25:50.839 -> :rn 51 17:25:50.839 -> :rd 5, 51, 0 17:25:50.839 -> :rdi 51, 5 17:25:50.839 -> :rd 1, 51, 5 17:25:50.839 -> :rdi 46, 1 17:25:50.839 -> :rd 5, 51, 6 17:25:50.839 -> :rdi 45, 5 17:25:50.839 -> :rd 40, 51, 11 17:25:50.839 -> :rdi 40, 40 17:25:50.839 -> :c0 40, 51 17:25:50.839 -> BSSL:Connected! 17:25:50.839 -> [HTTP-Client] connected to web-api.tp.entsoe.eu:443 17:25:50.839 -> [HTTP-Client] sending request header 17:25:50.839 -> ----- 17:25:50.839 -> GET /api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303202300&periodEnd=202303212300 HTTP/1.1 17:25:50.886 -> Host: web-api.tp.entsoe.eu 17:25:50.886 -> User-Agent: ESP8266HTTPClient 17:25:50.886 -> Accept-Encoding: identity;q=1,chunked;q=0.1,*;q=0 17:25:50.886 -> Connection: keep-alive 17:25:50.886 -> Content-Type: application/xml 17:25:50.886 -> Content-Length: 0 17:25:50.886 -> 17:25:50.886 -> ----- 17:25:50.886 -> :wr 405 0 17:25:50.886 -> :wrc 405 405 0 17:25:50.934 -> :ack 405 17:25:51.169 -> :rn 1460 17:25:51.169 -> :rd 5, 1460, 0 17:25:51.169 -> :rdi 1460, 5 17:25:51.169 -> :rch 1460, 1460 17:25:51.169 -> :rch 2920, 1288 17:25:51.169 -> :rch 4208, 34 17:25:51.169 -> :rd 536, 4242, 5 17:25:51.169 -> :rdi 1455, 536 17:25:51.169 -> [HTTP-Client][handleHeaderResponse] RX: 'HTTP/1.1 200 OK ' 17:25:51.169 -> [HTTP-Client][handleHeaderResponse] RX: 'Date: Tue, 21 Mar 2023 16:25:51 GMT ' 17:25:51.216 -> [HTTP-Client][handleHeaderResponse] RX: 'Server: Apache ' 17:25:51.216 -> [HTTP-Client][handleHeaderResponse] RX: 'Strict-Transport-Security: max-age=31536000 ; includeSubDomains ' 17:25:51.216 -> [HTTP-Client][handleHeaderResponse] RX: 'X-Powered-By: Undertow/1 ' 17:25:51.216 -> [HTTP-Client][handleHeaderResponse] RX: 'Keep-Alive: timeout=5, max=100 ' 17:25:51.216 -> [HTTP-Client][handleHeaderResponse] RX: 'Connection: Keep-Alive ' 17:25:51.216 -> [HTTP-Client][handleHeaderResponse] RX: 'Transfer-Encoding: chunked ' 17:25:51.216 -> [HTTP-Client][handleHeaderResponse] RX: 'Content-Type: text/xml ' 17:25:51.263 -> [HTTP-Client][handleHeaderResponse] RX: ' ' 17:25:51.263 -> [HTTP-Client][handleHeaderResponse] code: 200 17:25:51.263 -> [HTTP-Client][handleHeaderResponse] Transfer-Encoding: chunked 17:25:51.263 -> [ENTS]: HTTP_CODE: 200 17:25:51.263 -> 0 - Free HEAP:1808 17:25:51.263 -> [HTTP-Client] read chunk len: 3698 17:25:51.263 -> :rd 5, 4242, 541 17:25:51.263 -> :rdi 919, 5 17:25:51.263 -> :rd 536, 4242, 546 17:25:51.263 -> :rdi 914, 536 17:25:51.263 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 17:25:51.263 -> <s' 17:25:51.263 -> :rd 5, 4242, 1082 17:25:51.263 -> :rdi 378, 5 17:25:51.263 -> :rd 536, 4242, 1087 17:25:51.263 -> :rdi 373, 373 17:25:51.263 -> :c 373, 1460, 4242 17:25:51.310 -> :rdi 1460, 163 17:25:51.310 -> [String] Reallocating large String(748 -> 1260 bytes) '<?xml vers ... 2023-' 17:25:51.310 -> :rd 5, 2782, 163 17:25:51.310 -> :rdi 1297, 5 17:25:51.310 -> :rd 536, 2782, 168 17:25:51.310 -> :rdi 1292, 536 17:25:51.310 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.310 -> ' 17:25:51.310 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.310 -> ' 17:25:51.310 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.310 -> ' 17:25:51.310 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.357 -> ' 17:25:51.357 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.357 -> ' 17:25:51.357 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.357 -> ' 17:25:51.357 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.357 -> ' 17:25:51.357 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.357 -> ' 17:25:51.357 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.357 -> ' 17:25:51.357 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.357 -> ' 17:25:51.357 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.406 -> ' 17:25:51.406 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:51.406 -> '

---- removed same reallocation repeats.....

17:25:56.165 -> ' 17:25:56.165 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:56.165 -> ' 17:25:56.165 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:56.165 -> ' 17:25:56.165 -> :rch 2782, 31 17:25:56.165 -> :rcl pb=0x3fffadbc sz=2813 17:25:56.165 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:56.165 -> ' 17:25:56.165 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 17:25:56.212 -> '

---- removed same reallocation repeats.....

17:26:01.251 -> ' 17:26:01.251 -> [String] Reallocating large String(1260 -> 1772 bytes) ' 17:26:01.251 -> ' 17:26:01.251 -> [String] Reallocating large String(1260 -> 1772 bytes) ' 17:26:01.298 -> ' 17:26:01.298 -> [String] Reallocating large String(1260 -> 1772 bytes) ' 17:26:01.298 -> ' 17:26:01.298 -> [String] Reallocating large String(1260 -> 1772 bytes) ' 17:26:01.298 -> ' 17:26:01.298 -> [String] Reallocating large String(1260 -> 1772 bytes) ' 17:26:01.298 -> ' 17:26:01.298 -> [HTTP-Client][returnError] error(-11): read Timeout 17:26:01.298 -> [HTTP-Client][returnError] tcp stop 17:26:01.298 -> :close 17:26:01.298 -> [ENTS]: Length=1260 17:26:01.298 -> 17:26:01.298 -> <Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:0"> 17:26:01.344 -> <mRID>8a0a0aeef6204318a8a31f3fb2245fa7</mRID> 17:26:01.344 -> <revisionNumber>1</revisionNumber> 17:26:01.344 -> A44 17:26:01.344 -> <sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID> 17:26:01.344 -> <sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type> 17:26:01.344 -> <receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID> 17:26:01.344 -> <receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type> 17:26:01.344 -> <createdDateTime>2023-03-21T16:25:51Z</createdDateTime> 17:26:01.391 -> <period.timeInterval> 17:26:01.391 -> 2023-03-20T23:00Z 17:26:01.391 -> 2023-03-21T23:00Z 17:26:01.391 -> </period.timeInterval> 17:26:01.391 -> <TimeSeries> 17:26:01.391 -> <mRID>1</mRID> 17:26:01.391 -> <businessType>A62</businessType> 17:26:01.391 -> <in_Domain.mRID codingScheme="A01">10Y1001A1001A46L</in_Domain.mRID> 17:26:01.391 -> <out_Domain.mRID codingScheme="A01">10Y1001A1001A46L</out_Domain.mRID> 17:26:01.391 -> <currency_Unit.name>EUR</currency_Unit.name> 17:26:01.391 -> <price_Measure_Unit.name>MWH</price_Measure_Unit.name> 17:26:01.391 -> <curveType>A01</curveType> 17:26:01.391 -> <Period> 17:26:01.391 -> <timeInterval> 17:26:01.391 -> 2023-03-20T23:00Z 17:26:01.442 -> 2023-03-21T23:00Z 17:26:01.442 -> </timeInterval> 17:26:01.442 -> 17:26:01.442 -> [ENTS]: DATA 0 ="1.0" encoding="UTF-8"?> 17:26:01.442 -> <Publication_MarketDocument xmlns="urn:iec62325.351:tc57wg16:451-3:publicationdocument:7:0"> 17:26:01.442 -> <mRID>8a0a0aeef6204318a8a31f3fb2245fa7</mRID> 17:26:01.442 -> <revisionNumber>1</revisionNumber> 17:26:01.442 -> A44 17:26:01.442 -> <sender_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</sender_MarketParticipant.mRID> 17:26:01.442 -> <sender_MarketParticipant.marketRole.type>A32</sender_MarketParticipant.marketRole.type> 17:26:01.442 -> <receiver_MarketParticipant.mRID codingScheme="A01">10X1001A1001A450</receiver_MarketParticipant.mRID> 17:26:01.489 -> <receiver_MarketParticipant.marketRole.type>A33</receiver_MarketParticipant.marketRole.type> 17:26:01.489 -> <createdDateTime>2023-03-21T16:25:51Z</createdDateTime> 17:26:01.489 -> <period.timeInterval> 17:26:01.489 -> 2023-03-20T23:00Z 17:26:01.489 -> 2023-03-21T23:00Z 17:26:01.489 -> </period.timeInterval> 17:26:01.489 -> <TimeSeries> 17:26:01.489 -> <mRID>1</mRID> 17:26:01.489 -> <businessType>A62</businessType> 17:26:01.489 -> <in_Domain.mRID codingScheme="A01">10Y1001A1001A46L</in_Domain.mRID> 17:26:01.489 -> <out_Domain.mRID codingScheme="A01">10Y1001A1001A46L</out_Domain.mRID> 17:26:01.489 -> <currency_Unit.name>EUR</currency_Unit.name> 17:26:01.489 -> <price_Measure_Unit.name>MWH</price_Measure_Unit.name> 17:26:01.536 -> <curveType>A01</curveType> 17:26:01.536 -> <Period> 17:26:01.536 -> <timeInterval> 17:26:01.536 -> 2023-03-20T23:00Z 17:26:01.536 -> 2023-03-21T23:00Z 17:26:01.536 -> </timeInterval> 17:26:01.536 -> [ENTS]: Today payload contained: 0 17:26:01.536 -> [HTTP-Client][end] tcp is closed 17:26:01.536 -> lfs_file_close: fd=0x3fff5388 17:26:01.536 -> lfs_file_close: fd=0x3fff5388 17:26:01.536 -> [ENTS]: Tomorrow url:https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303212300&periodEnd=202303222300 17:26:01.583 -> [HTTP-Client][begin] url: https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303212300&periodEnd=202303222300 17:26:01.583 -> [HTTP-Client][begin] host: web-api.tp.entsoe.eu port: 443 url: /api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303212300&periodEnd=202303222300 17:26:01.583 -> [HTTP-Client][sendRequest] type: 'GET' redirCount: 0 17:26:01.630 -> [hostByName] request IP for: web-api.tp.entsoe.eu 17:26:01.630 -> [hostByName] Host: web-api.tp.entsoe.eu IP: 62.209.222.31 17:26:01.630 -> :ur 1 17:26:01.630 -> :dsrcv 2813 17:26:01.630 -> :del 17:26:01.630 -> :ref 1 17:26:01.630 -> BSSL:_connectSSL: start connection 17:26:01.677 -> 17:26:01.677 -> _iobuf_in: 0x3fff567c 17:26:01.677 -> _iobuf_out: 0x3fffb724 17:26:01.677 -> _iobuf_in_size: 16709 17:26:01.677 -> _iobuf_out_size: 597 17:26:01.677 -> :wr 225 0 17:26:01.677 -> :wrc 225 225 0 17:26:01.725 -> :ack 225 17:26:01.725 -> :rn 1460 17:26:01.725 -> :rch 1460, 1460 17:26:01.725 -> :rch 2920, 697 17:26:01.725 -> :rd 5, 3617, 0 17:26:01.725 -> :rdi 1460, 5 17:26:01.725 -> :rd 98, 3617, 5 17:26:01.725 -> :rdi 1455, 98 17:26:01.725 -> :rd 5, 3617, 103 17:26:01.725 -> :rdi 1357, 5 17:26:01.725 -> :rd 512, 3617, 108 17:26:01.725 -> :rdi 1352, 512 17:26:01.725 -> BSSL:CERT: 30 82 06 35 30 82 05 1d a0 03 02 01 02 02 11 00 b0 5a 57 9a 0e 44 dc e3 94 aa ed cd 15 bd 8e af 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 81 8f 31 0b 30 09 06 03 55 04 06 13 02 47 42 31 1b 30 19 06 03 55 04 08 13 12 47 72 65 61 74 65 72 20 4d 61 6e 63 68 65 73 74 65 72 31 10 30 0e 06 03 55 04 07 13 07 53 61 6c 66 6f 72 64 31 18 30 16 06 03 55 04 0a 13 0f 53 65 63 74 69 67 6f 20 4c 69 6d 69 74 65 64 31 37 30 35 06 03 55 04 03 13 2e 53 65 63 74 69 67 6f 20 52 53 41 20 44 6f 6d 61 69 6e 20 56 61 6c 69 64 61 74 69 6f 6e 20 53 65 63 75 72 65 20 53 65 72 76 65 72 20 43 41 30 1e 17 0d 32 32 30 33 32 33 30 30 30 30 30 30 5a 17 0d 32 33 30 34 32 33 32 33 35 39 35 39 5a 30 19 31 17 30 15 06 03 55 04 03 0c 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 22 17:26:01.819 -> :rd 5, 3617, 620 17:26:01.819 -> :rdi 840, 5 17:26:01.819 -> 17:26:01.819 -> --------------- CUT HERE FOR EXCEPTION DECODER --------------- 17:26:01.819 -> 17:26:01.819 -> Exception (29): 17:26:01.819 -> epc1=0x4000df64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000 17:26:01.819 -> 17:26:01.819 -> >>>stack>>> 17:26:01.819 -> 17:26:01.819 -> ctx: sys 17:26:01.819 -> sp: 3fffec10 end: 3fffffb0 offset: 0190 17:26:01.819 -> 3fffeda0: 00000139 ffffffff ffffffff 00000000
17:26:01.819 -> 3fffedb0: 00000003 00000010 3f302064 3ffef4b0
17:26:01.866 -> 3fffedc0: 4026898b 3ffefb40 00000002 40268920
17:26:01.866 -> 3fffedd0: 00000002 402688c7 00000002 40267a1c
17:26:01.866 -> 3fffede0: 40267a45 3fffee90 3ffefb40 0000001a
17:26:01.866 -> 3fffedf0: 402654a8 3fffee90 3ffef9e8 3ffef374
17:26:01.866 -> 3fffee00: 3ffec5b4 3fffee90 3fffee90 3fffee50
17:26:01.866 -> 3fffee10: 696d686f 34326f67 3fff1900 40100f0e
17:26:01.866 -> 3fffee20: 00000002 3ffe860c 3fff19f8 40100f0e
17:26:01.866 -> 3fffee30: 40261801 3ffe860c 0000001c 40101168
17:26:01.866 -> 3fffee40: ffffffe1 3ffef4fc 3ffec5c4 3ffefb40
17:26:01.866 -> 3fffee50: 3ffeea90 00000041 00000000 402661a3

TobbeG avatar Mar 21 '23 16:03 TobbeG

After minimizing memory use, the ESP8266 still does not get the data with getString() but it does not crash It just hangs waiting for timeout with "Reallocating large String..

16:11:43.323 -> [SYS ]: BOOT>> 16:11:43.323 -> [INFO]: DeviceType: Ohmigo.mini 16:11:43.323 -> [INFO]: DeviceID: 1129931 16:11:43.323 -> [INFO]: Version: 1.1.1 BUILD: Mar 25 2023 16:10:56 16:11:43.323 -> [INFO]: Flash: 1048576 16:11:43.323 -> [INFO]: FlashReal: 1048576 16:11:43.323 -> [INFO]: FlashSpeed MHz 40 16:11:43.323 -> 16:11:43.323 -> lfs_file_close: fd=0x3fff2910 16:11:43.323 -> [INFO]: DeviceName: mini 16:11:43.371 -> lfs_file_close: fd=0x3fff2910 16:11:43.371 -> lfs_file_close: fd=0x3fff28c0 16:11:43.371 -> [String] Reallocating large String(143 -> 144 bytes) 'ENTSOE_URL ... =<START>&p' 16:11:43.371 -> lfs_file_close: fd=0x3fff28c0 16:11:43.417 -> lfs_file_close: fd=0x3fff28c0 16:11:43.417 -> lfs_file_close: fd=0x3fff28c0 16:11:43.417 -> [WIFI]: Try 1 connecting to WiFi: ohmigo24wifi evt: 2 16:11:44.314 -> ...wifi evt: 0 16:11:47.898 -> wifi evt: 3 16:11:47.946 -> OK with RSSI:-32 16:11:47.994 -> :urn 48 16:11:47.994 -> :urd 48, 48, 0 16:11:47.994 -> lfs_file_close: fd=0x3fff28a0 16:11:47.994 -> [NTP ]: NTP = 1679760708 16:11:47.994 -> lfs_file_close: fd=0x3fff28a0 16:11:47.994 -> [NTP ]: Sync interval set to: 3600 seconds 16:11:47.994 -> lfs_file_close: fd=0x3fff28a0 16:11:47.994 -> [NTP ]: 2023-03-25 16:11:48 16:11:47.994 -> [FILE]: Total:65536 16:11:47.994 -> [FILE]: Used: 12288 16:11:47.994 -> [FILE]: 1129931.cfg - 1024 bytes 16:11:48.042 -> lfs_file_close: fd=0x3fff2968 16:11:48.042 -> [RUN ]: Runsecond is: 14 16:11:48.042 -> [SYS ]: IP:192.168.7.85 - Ready >> 16:11:48.042 -> lfs_file_close: fd=0x3fff3778 16:11:48.042 -> lfs_file_close: fd=0x3fff37a8 16:11:48.042 -> [CHK ]: License valid until: 2037-12-31 2023-03-25 16:11:48.042 -> 16:11:48.042 -> StackThunk malloc(6200) 16:11:48.042 -> StackThunk stack_thunk_ptr: 0x3fff392c 16:11:48.042 -> [ENTS]: Today url:https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXXXTOKENXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303242300&periodEnd=202303252300 16:11:48.089 -> [HTTP-Client][begin] url: https://web-api.tp.entsoe.eu/api?securityToken=XXXXXXXXXXXXXXTOKENXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303242300&periodEnd=202303252300 16:11:48.089 -> [HTTP-Client][begin] host: web-api.tp.entsoe.eu port: 443 url: /api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303242300&periodEnd=202303252300 16:11:48.137 -> [HTTP-Client][sendRequest] type: 'GET' redirCount: 0 16:11:48.137 -> [hostByName] request IP for: web-api.tp.entsoe.eu 16:11:48.137 -> [hostByName] Host: web-api.tp.entsoe.eu IP: 62.209.222.31 16:11:48.137 -> :ref 1 16:11:48.184 -> BSSL:_connectSSL: start connection 16:11:48.184 -> 16:11:48.184 -> _iobuf_in: 0x3fff630c 16:11:48.184 -> _iobuf_out: 0x3fffa464 16:11:48.184 -> _iobuf_in_size: 16709 16:11:48.184 -> _iobuf_out_size: 597 16:11:48.231 -> :wr 225 0 16:11:48.231 -> :wrc 225 225 0 16:11:48.231 -> :ack 225 16:11:48.231 -> :rn 1460 16:11:48.231 -> :rd 5, 1460, 0 16:11:48.231 -> :rdi 1460, 5 16:11:48.231 -> :rch 1460, 1460 16:11:48.278 -> :rch 2920, 697 16:11:48.278 -> :rd 98, 3617, 5 16:11:48.278 -> :rdi 1455, 98 16:11:48.278 -> :rd 5, 3617, 103 16:11:48.278 -> :rdi 1357, 5 16:11:48.278 -> :rd 512, 3617, 108 16:11:48.278 -> :rdi 1352, 512 16:11:48.278 -> BSSL:CERT: 30 82 06 35 30 82 05 1d a0 03 02 01 02 02 11 00 b0 5a 57 9a 0e 44 dc e3 94 aa ed cd 15 bd 8e af 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 81 8f 31 0b 30 09 06 03 55 04 06 13 02 47 42 31 1b 30 19 06 03 55 04 08 13 12 47 72 65 61 74 65 72 20 4d 61 6e 63 68 65 73 74 65 72 31 10 30 0e 06 03 55 04 07 13 07 53 61 6c 66 6f 72 64 31 18 30 16 06 03 55 04 0a 13 0f 53 65 63 74 69 67 6f 20 4c 69 6d 69 74 65 64 31 37 30 35 06 03 55 04 03 13 2e 53 65 63 74 69 67 6f 20 52 53 41 20 44 6f 6d 61 69 6e 20 56 61 6c 69 64 61 74 69 6f 6e 20 53 65 63 75 72 65 20 53 65 72 76 65 72 20 43 41 30 1e 17 0d 32 32 30 33 32 33 30 30 30 30 30 30 5a 17 0d 32 33 30 34 32 33 32 33 35 39 35 39 5a 30 19 31 17 30 15 06 03 55 04 03 0c 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 22 16:11:48.325 -> :rd 5, 3617, 620 16:11:48.325 -> :rdi 840, 5 16:11:48.325 -> :rd 512, 3617, 625 16:11:48.325 -> :rdi 835, 512 16:11:48.371 -> BSSL:CERT: 30 0d 06 09 2a 86 48 86 f7 0d 01 01 01 05 00 03 82 01 0f 00 30 82 01 0a 02 82 01 01 00 ae 58 e2 6d 26 30 32 af c8 3a 7e e5 14 8b cf d4 4b 37 df 1d 31 af 95 fb 33 e3 62 ca c0 de 1e 2e f5 2b 11 5a 27 cb f6 b3 db 96 32 9b 6f 7b fc b6 53 13 7d 56 2d 5b 73 9b 1c 53 57 69 0d f0 da 9d 14 d6 fc 6a c0 52 1b 2d a3 5d ea f3 7e b2 24 03 d4 58 35 b3 a2 c8 e8 9e c9 4d 41 79 69 26 01 3a 52 86 8d 66 a8 0b 03 5b ef ad ae 67 10 df 53 98 3e d2 86 7e 69 40 e5 0f dd 25 58 7e 04 40 15 23 58 b1 84 6a 12 a5 ed 68 7c cc 59 e6 de b2 d6 c9 aa 36 67 22 1e e9 0b 5f 7e 6b 9a 8e 68 c6 79 c7 86 b2 5b f8 0c 7a fd 6c f0 6a bf 21 5b af f7 57 04 2a 36 53 89 a4 ad 07 dc b3 f5 47 40 a6 ff e4 b9 1d 13 51 c5 e7 6b a2 21 9c be 90 f6 3e 4f 84 8a 48 c1 6c ba 6a b5 4a 86 16 34 dd 28 1f 0a e8 de b9 6c 16:11:48.418 -> BSSL:CERT: 8a 74 94 1f 01 28 cb f5 9f 11 40 c6 73 e1 fc b6 8f e0 a1 46 6d 46 aa 6a 6a b3 73 bf 3d 02 03 01 00 01 a3 82 02 ff 30 82 02 fb 30 1f 06 03 55 1d 23 04 18 30 16 80 14 8d 8c 5e c4 54 ad 8a e1 77 e9 9b f9 9b 05 e1 b8 01 8d 61 e1 30 1d 06 03 55 1d 0e 04 16 04 14 f4 d0 b1 4b e2 98 a5 44 13 a9 7b c0 e6 6e 1a 57 3d 93 00 f2 30 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 05 a0 30 0c 06 03 55 1d 13 01 01 ff 04 02 30 00 30 1d 06 03 55 1d 25 04 16 30 14 06 08 2b 06 01 05 05 07 03 01 06 08 2b 06 01 05 05 07 03 02 30 49 06 03 55 1d 20 04 42 30 40 30 34 06 0b 2b 06 01 04 01 b2 31 01 02 02 07 30 25 30 23 06 08 2b 06 01 05 05 07 02 01 16 17 68 74 74 70 73 3a 2f 2f 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 43 50 53 30 08 06 06 67 81 0c 01 02 01 30 81 84 06 08 2b 06 01 05 05 07 01 01 04 16:11:48.466 -> :rd 5, 3617, 1137 16:11:48.514 -> :rdi 323, 5 16:11:48.514 -> :rd 512, 3617, 1142 16:11:48.514 -> :rdi 318, 318 16:11:48.514 -> :c 318, 1460, 3617 16:11:48.514 -> :rdi 1460, 194 16:11:48.514 -> BSSL:CERT: 78 30 76 30 4f 06 08 2b 06 01 05 05 07 30 02 86 43 68 74 74 70 3a 2f 2f 63 72 74 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 2f 53 65 63 74 69 67 6f 52 53 41 44 6f 6d 61 69 6e 56 61 6c 69 64 61 74 69 6f 6e 53 65 63 75 72 65 53 65 72 76 65 72 43 41 2e 63 72 74 30 23 06 08 2b 06 01 05 05 07 30 01 86 17 68 74 74 70 3a 2f 2f 6f 63 73 70 2e 73 65 63 74 69 67 6f 2e 63 6f 6d 30 27 06 03 55 1d 11 04 20 30 1e 82 0e 2a 2e 74 70 2e 65 6e 74 73 6f 65 2e 65 75 82 0c 74 70 2e 65 6e 74 73 6f 65 2e 65 75 30 82 01 7f 06 0a 2b 06 01 04 01 d6 79 02 04 02 04 82 01 6f 04 82 01 6b 01 69 00 76 00 ad f7 be fa 7c ff 10 c8 8b 9d 3d 9c 1e 3e 18 6a b4 67 29 5d cf b1 0c 24 ca 85 86 34 eb dc 82 8a 00 00 01 7f b7 3e e6 44 00 00 04 03 00 47 30 45 02 20 18 94 48 0b c7 0a 64 f9 77 13 a1 38 21 80 75 16:11:48.561 -> BSSL:CERT: 8d 8f b2 f2 f9 cf 0a 44 9f ef 69 9f e9 36 1f 65 59 02 21 00 f5 b4 3e ff 15 e1 e9 21 c1 05 9d 51 98 48 c6 d8 50 38 84 2f df e9 62 15 d8 3c 0f 19 15 c5 68 37 00 77 00 7a 32 8c 54 d8 b7 2d b6 20 ea 38 e0 52 1e e9 84 16 70 32 13 85 4d 3b d2 2b c1 3a 57 a3 52 eb 52 00 00 01 7f b7 3e e6 1a 00 00 04 03 00 48 30 46 02 21 00 f0 93 dd a6 65 59 dd e6 0a 51 3b c9 14 7d b9 58 0d 6f 65 14 1b 8c d7 37 d3 11 be 1e ab 92 e1 64 02 21 00 94 cc f5 57 44 b2 75 aa 4c 7d c5 b1 0d 0d e2 17 80 d3 57 14 f8 e9 f1 11 7d ad b9 f9 e1 ca 35 ba 00 76 00 e8 3e d0 da 3e f5 06 35 32 e7 57 28 bc 89 6b c9 03 d3 cb d1 11 6b ec eb 69 e1 77 7d 6d 06 bd 6e 00 00 01 7f b7 3e e5 f6 00 00 04 03 00 47 30 45 02 21 00 a2 94 71 1c 2d 92 5d ef 3c 31 cf c0 d7 fb c8 4b 9c 2c 38 fd 91 3c fd ff a2 fe b1 81 19 16:11:48.657 -> :rd 5, 2157, 194 16:11:48.657 -> :rdi 1266, 5 16:11:48.657 -> :rd 512, 2157, 199 16:11:48.657 -> :rdi 1261, 512 16:11:48.657 -> BSSL:CERT: 7f 98 b7 02 20 1a f0 c9 07 74 cc 1d f9 1a ae 12 0e cb 67 12 95 8b 21 04 27 d7 76 5c 7d ee 98 eb 05 06 24 7e 1c 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 03 82 01 01 00 b6 4a b9 7c fb 32 b3 ad e3 e5 72 34 94 9a fd ad 70 92 7e fb a5 f7 19 f6 21 2a 7d 6e b4 2f e5 84 bc df 00 78 98 c4 fe 81 52 0c 97 64 24 30 94 ce d6 0a bc ba 1c 5b de 36 03 00 57 28 b1 c4 f6 41 23 c4 45 6d af 2c 92 15 2c 00 70 bc d7 13 a3 31 c8 e1 7c 28 c4 ce 4f af 4f 7f eb e0 ce 7b 02 6e 1a 89 eb e0 5e 93 c6 ee 94 b2 5b 93 ef 9b fc 2f b6 87 9d 07 dd 06 8b 8e 3c e9 90 d0 6b fa b8 d1 92 38 6f 74 3a b3 14 49 f2 23 79 cd c9 65 76 c2 f8 5f 3c 74 2a 3f 40 f6 3b 09 61 80 d1 fc 32 10 75 45 9b 8d 87 57 2a 33 2e e7 09 c2 a9 9e bb 62 03 4b 2d d9 b8 c8 8d 62 b1 4d 7a 06 ce 10 e5 31 52 02 08 f0 1d f7 1b 16:11:48.704 -> BSSL:CERT: 9d 0b c7 e5 1f c8 e0 de be 07 f4 7e 6d a3 72 38 b1 30 e0 f7 ab ec 8e f8 b5 8d 3c a2 bf d1 33 e9 e3 66 8b 1a ae ae 93 d2 16 9d 38 fa 74 56 e2 88 65 42 ae d8 b4 40 37 34 fe 16:11:48.704 -> :rd 5, 2157, 711 16:11:48.704 -> :rdi 749, 5 16:11:48.704 -> :rd 512, 2157, 716 16:11:48.751 -> :rdi 744, 512 16:11:48.751 -> :rd 5, 2157, 1228 16:11:48.751 -> :rdi 232, 5 16:11:48.751 -> :rd 512, 2157, 1233 16:11:48.751 -> :rdi 227, 227 16:11:48.751 -> :c 227, 1460, 2157 16:11:48.751 -> :rdi 697, 285 16:11:48.751 -> :rd 5, 697, 285 16:11:48.751 -> :rdi 412, 5 16:11:48.751 -> :rd 93, 697, 290 16:11:48.751 -> :rdi 407, 93 16:11:48.751 -> :rd 5, 697, 383 16:11:48.751 -> :rdi 314, 5 16:11:48.751 -> :rd 300, 697, 388 16:11:48.751 -> :rdi 309, 300 16:11:48.844 -> :rd 5, 697, 688 16:11:48.844 -> :rdi 9, 5 16:11:48.844 -> :rd 4, 697, 693 16:11:48.844 -> :rdi 4, 4 16:11:48.844 -> :c0 4, 697 16:11:48.987 -> :wr 42 0 16:11:48.987 -> :wrc 42 42 0 16:11:48.987 -> :wr 6 0 16:11:48.987 -> :wrc 6 6 0 16:11:48.987 -> :wr 45 0 16:11:48.987 -> :wrc 45 45 0 16:11:49.082 -> :ack 42 16:11:49.129 -> :ack 51 16:11:49.129 -> :rn 51 16:11:49.129 -> :rd 5, 51, 0 16:11:49.129 -> :rdi 51, 5 16:11:49.129 -> :rd 1, 51, 5 16:11:49.129 -> :rdi 46, 1 16:11:49.129 -> :rd 5, 51, 6 16:11:49.129 -> :rdi 45, 5 16:11:49.129 -> :rd 40, 51, 11 16:11:49.129 -> :rdi 40, 40 16:11:49.129 -> :c0 40, 51 16:11:49.129 -> BSSL:Connected! 16:11:49.129 -> [HTTP-Client] connected to web-api.tp.entsoe.eu:443 16:11:49.129 -> [HTTP-Client] sending request header 16:11:49.129 -> ----- 16:11:49.129 -> GET /api?securityToken=XXXXXXXXXXXXTOKENXXXXXXXXXXXX&documentType=A44&in_Domain=10Y1001A1001A46L&out_Domain=10Y1001A1001A46L&periodStart=202303242300&periodEnd=202303252300 HTTP/1.1 16:11:49.129 -> Host: web-api.tp.entsoe.eu 16:11:49.129 -> User-Agent: ESP8266HTTPClient 16:11:49.177 -> Accept-Encoding: identity;q=1,chunked;q=0.1,*;q=0 16:11:49.177 -> Connection: keep-alive 16:11:49.177 -> Content-Type: application/xml 16:11:49.177 -> Content-Length: 0 16:11:49.177 -> 16:11:49.177 -> ----- 16:11:49.177 -> :wr 405 0 16:11:49.177 -> :wrc 405 405 0 16:11:49.225 -> :ack 405 16:11:49.365 -> :rn 1460 16:11:49.365 -> :rch 1460, 1460 16:11:49.365 -> :rch 2920, 1276 16:11:49.365 -> :rd 5, 4196, 0 16:11:49.365 -> :rdi 1460, 5 16:11:49.365 -> :rd 536, 4196, 5 16:11:49.365 -> :rdi 1455, 536 16:11:49.365 -> [HTTP-Client][handleHeaderResponse] RX: 'HTTP/1.1 200 OK ' 16:11:49.365 -> [HTTP-Client][handleHeaderResponse] RX: 'Date: Sat, 25 Mar 2023 15:11:49 GMT ' 16:11:49.365 -> [HTTP-Client][handleHeaderResponse] RX: 'Server: Apache ' 16:11:49.413 -> [HTTP-Client][handleHeaderResponse] RX: 'Strict-Transport-Security: max-age=31536000 ; includeSubDomains ' 16:11:49.413 -> :rch 4196, 34 16:11:49.413 -> [HTTP-Client][handleHeaderResponse] RX: 'X-Powered-By: Undertow/1 ' 16:11:49.413 -> [HTTP-Client][handleHeaderResponse] RX: 'Keep-Alive: timeout=5, max=100 ' 16:11:49.413 -> [HTTP-Client][handleHeaderResponse] RX: 'Connection: Keep-Alive ' 16:11:49.413 -> [HTTP-Client][handleHeaderResponse] RX: 'Transfer-Encoding: chunked ' 16:11:49.413 -> [HTTP-Client][handleHeaderResponse] RX: 'Content-Type: text/xml ' 16:11:49.413 -> [HTTP-Client][handleHeaderResponse] RX: ' ' 16:11:49.461 -> [HTTP-Client][handleHeaderResponse] code: 200 16:11:49.461 -> [HTTP-Client][handleHeaderResponse] Transfer-Encoding: chunked 16:11:49.461 -> [ENTS]: HTTP_CODE: 200 16:11:49.461 -> 0 - Free HEAP:2040 16:11:49.461 -> [HTTP-Client] read chunk len: 3686 16:11:49.461 -> :rd 5, 4230, 541 16:11:49.461 -> :rdi 919, 5 16:11:49.461 -> :rd 536, 4230, 546 16:11:49.461 -> :rdi 914, 536 16:11:49.461 -> [String] Reallocating large String(236 -> 748 bytes) '<?xml vers ... /type> 16:11:49.461 -> <s' 16:11:49.461 -> :rd 5, 4230, 1082 16:11:49.461 -> :rdi 378, 5 16:11:49.461 -> :rd 536, 4230, 1087 16:11:49.461 -> :rdi 373, 373 16:11:49.461 -> :c 373, 1460, 4230 16:11:49.461 -> :rdi 1460, 163 16:11:49.461 -> [String] Reallocating large String(748 -> 1260 bytes) '<?xml vers ... 2023-' 16:11:49.509 -> :rd 5, 2770, 163 16:11:49.509 -> :rdi 1297, 5 16:11:49.509 -> :rd 536, 2770, 168 16:11:49.509 -> :rdi 1292, 536 16:11:49.509 -> [String] Reallocating large String(1260 -> 1772 bytes) '<?xml vers ... erval> 16:11:49.509 -> ' 16:11:49.509 -> :rd 5, 2770, 704 16:11:49.509 -> :rdi 756, 5 16:11:49.509 -> :rd 536, 2770, 709 16:11:49.509 -> :rdi 751, 536 16:11:49.509 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.509 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.509 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.556 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.556 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.556 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.556 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.556 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.556 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.556 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.603 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.603 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.603 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.603 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.603 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.603 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.651 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.651 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.651 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.651 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.651 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.651 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.698 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.698 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>' 16:11:49.698 -> [String] Reallocating large String(1772 -> 2284 bytes) '<?xml vers ... </Point>'

TobbeG avatar Mar 25 '23 15:03 TobbeG

Appreciate if we can get this solved asap, it is causing me lots of trouble.

... or is there another way - maybe a workaround to get extract the price data from Entose?

THANKS for getting this solved soon!

TobbeG avatar Mar 25 '23 15:03 TobbeG

We are still working on this. #8874 and #8885 may solve your issue after some updates to them.

d-a-v avatar Mar 27 '23 10:03 d-a-v

Thanks – I will wait for your green light 😊 once you solved it.

I tried also using stream with 128bytes chunks and that works ok.

Let me know if I can assist you with more info.

TobbeG avatar Mar 27 '23 10:03 TobbeG

#8874 is merged, #8885 and #8899 should solve your issue.

d-a-v avatar Mar 29 '23 00:03 d-a-v

Hi again, sorry for asking - but how can I get what I need ínto my Arduino IDE 1.8.16 ? Or is there a new core version or any specific library to download?

TobbeG avatar Mar 30 '23 18:03 TobbeG

Hi again, sorry for asking - but how can I get what I need ínto my Arduino IDE 1.8.16 ? Or is there a new core version or any specific library to download?

https://arduino-esp8266.readthedocs.io/en/latest/installing.html#using-git-version

mcspr avatar Mar 31 '23 11:03 mcspr

@TobbeG You can also try the unofficial nightly release for Arduino IDE.

It is located at https://d-a-v.github.io/esp8266/Arduino/index.html under version 0.0.2 (not 0.0.1 because all proposals that are of interest for you are not yet integrated in the master branch) please take time to read there first.

You can then update timeouts (during handshake or normal operations) also use ssl ram usage optimization in your code as added in this example.

I have now no issue reading entsoe data with a sketch similar to the above one.

d-a-v avatar Apr 01 '23 17:04 d-a-v

Are these fixes part of new core release 3.1.2 ?

TobbeG avatar Apr 04 '23 14:04 TobbeG

No but there is an esp8266/Arduino nightly release (v0.0.2) which is v3.1.2 + something for you to try, described in my previous post.

d-a-v avatar Apr 04 '23 17:04 d-a-v

@TobbeG Did you have a chance to try the proposed changes ?

d-a-v avatar Apr 07 '23 21:04 d-a-v

Not yet. I changed my code to use streaming and it works fine for now. How long before this fix will be part of a new core version?

TobbeG avatar Apr 10 '23 07:04 TobbeG