Skip to content

Reset after HTTPS GET/POST #6291

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

Closed
1 task done
nimaltd opened this issue Feb 15, 2022 · 2 comments
Closed
1 task done

Reset after HTTPS GET/POST #6291

nimaltd opened this issue Feb 15, 2022 · 2 comments
Labels
Resolution: Duplicate Issue is a duplicate of another issue

Comments

@nimaltd
Copy link
Contributor

nimaltd commented Feb 15, 2022

Board

Nodemcu-32s

Device Description

reset after https connection

Hardware Configuration

none

Version

v2.0.2

IDE Name

eclipse

Operating System

win10

Flash frequency

80

PSRAM enabled

no

Upload speed

115200

Description

reset after connection

Sketch

#include <Arduino.h>

#include <WiFi.h>
#include <WiFiMulti.h>

#include <HTTPClient.h>

#define USE_SERIAL Serial

WiFiMulti wifiMulti;

/*
const char* ca = \
"-----BEGIN CERTIFICATE-----\n" \
"MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/\n" \
"MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT\n" \
"DkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow\n" \
"SjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT\n" \
"GkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC\n" \
"AQ8AMIIBCgKCAQEAnNMM8FrlLke3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF\n" \
"q6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8\n" \
"SMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN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7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6\n" \
"KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==\n" \
"-----END CERTIFICATE-----\n";
*/

void setup() {

    USE_SERIAL.begin(115200);

    USE_SERIAL.println();
    USE_SERIAL.println();
    USE_SERIAL.println();

    for(uint8_t t = 4; t > 0; t--) {
        USE_SERIAL.printf("[SETUP] WAIT %d...\n", t);
        USE_SERIAL.flush();
        delay(1000);
    }

    wifiMulti.addAP("xxx", "xxxx");

}

void loop() {
    // wait for WiFi connection
    if((wifiMulti.run() == WL_CONNECTED)) {

        HTTPClient http;

        USE_SERIAL.print("[HTTP] begin...\n");
        // configure traged server and url
        //http.begin("https://www.howsmyssl.com/a/check", ca); //HTTPS
        http.begin("http://example.com/index.html"); //HTTP

        USE_SERIAL.print("[HTTP] GET...\n");
        // start connection and send HTTP header
        int httpCode = http.GET();

        // httpCode will be negative on error
        if(httpCode > 0) {
            // HTTP header has been send and Server response header has been handled
            USE_SERIAL.printf("[HTTP] GET... code: %d\n", httpCode);

            // file found at server
            if(httpCode == HTTP_CODE_OK) {
                String payload = http.getString();
                USE_SERIAL.println(payload);
            }
        } else {
            USE_SERIAL.printf("[HTTP] GET... failed, error: %s\n", http.errorToString(httpCode).c_str());
        }

        http.end();
    }

    delay(5000);
}

Debug Message

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1324
ho 0 tail 12 room 4
load:0x40078000,len:13480
ho 0 tail 12 room 4
load:0x40080400,len:3604
0x40080400: _init at ??:?

entry 0x400805f0



[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...
[ 14499][E][WiFiMulti.cpp:187] run(): [WIFI] Connecting Failed (0).
[ 27747][E][WiFiMulti.cpp:187] run(): [WIFI] Connecting Failed (0).
[HTTP] begin...
[HTTP] GET...
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400daafb  PS      : 0x00060830  A0      : 0x800dbba6  A1      : 0x3ffb2650
0x400daafb: __gnu_cxx::__normal_iterator<Cookie*, std::vector<Cookie, std::allocator<Cookie> > >::__normal_iterator(Cookie* const&) at c:\users\nimal\.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_iterator.h:784
 (inlined by) std::vector<Cookie, std::allocator<Cookie> >::begin() at c:\users\nimal\.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_vector.h:699
 (inlined by) HTTPClient::generateCookieString(String*) at C:/Users/Nimal/.espressif/frameworks/esp-idf-v4.4/components/arduino/libraries/HTTPClient/src/HTTPClient.cpp:1673

A2      : 0x3ffb273c  A3      : 0x3ffb26bc  A4      : 0x00000000  A5      : 0x00000020
A6      : 0x00000000  A7      : 0xff000000  A8      : 0x3ffb2748  A9      : 0x3ffb2630
A10     : 0x3ffb26bc  A11     : 0x3f414875  A12     : 0x00000004  A13     : 0x00000004
A14     : 0x00000000  A15     : 0x3ffc0218  SAR     : 0x00000008  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000  LBEG    : 0x40082d5d  LEND    : 0x40082d65  LCOUNT  : 0x00000027
0x40082d5d: esp_timer_impl_get_counter_reg at C:/Users/Nimal/.espressif/frameworks/esp-idf-v4.4/components/esp_timer/src/esp_timer_impl_lac.c:118 (discriminator 2)

0x40082d65: esp_timer_impl_get_counter_reg at C:/Users/Nimal/.espressif/frameworks/esp-idf-v4.4/components/esp_timer/src/esp_timer_impl_lac.c:128 (discriminator 1)



Backtrace:0x400daaf8:0x3ffb26500x400dbba3:0x3ffb26a0 0x400dbd27:0x3ffb2700 0x400d9093:0x3ffb2720 0x400d7265:0x3ffb2820
0x400daaf8: __gnu_cxx::__normal_iterator<Cookie*, std::vector<Cookie, std::allocator<Cookie> > >::__normal_iterator(Cookie* const&) at c:\users\nimal\.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_iterator.h:784
 (inlined by) std::vector<Cookie, std::allocator<Cookie> >::begin() at c:\users\nimal\.espressif\tools\xtensa-esp32-elf\esp-2021r2-patch2-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_vector.h:699
 (inlined by) HTTPClient::generateCookieString(String*) at C:/Users/Nimal/.espressif/frameworks/esp-idf-v4.4/components/arduino/libraries/HTTPClient/src/HTTPClient.cpp:1673

0x400dbba3: HTTPClient::sendRequest(char const*, unsigned char*, unsigned int) at C:/Users/Nimal/.espressif/frameworks/esp-idf-v4.4/components/arduino/libraries/HTTPClient/src/HTTPClient.cpp:613

0x400dbd27: HTTPClient::GET() at C:/Users/Nimal/.espressif/frameworks/esp-idf-v4.4/components/arduino/libraries/HTTPClient/src/HTTPClient.cpp:520

0x400d9093: loop() at E:\Project\BrunTAB\BUN_AIO_ESP32\CODE\build/../main/main.cpp:75

0x400d7265: loopTask(void*) at C:/Users/Nimal/.espressif/frameworks/esp-idf-v4.4/components/arduino/cores/esp32/main.cpp:50





ELF file SHA256: 38d48f75afb0ca17

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1324
ho 0 tail 12 room 4
load:0x40078000,len:13480
ho 0 tail 12 room 4
load:0x40080400,len:3604
0x40080400: _init at ??:?

entry 0x400805f0



[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...

Other Steps to Reproduce

No response

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@nimaltd nimaltd added the Status: Awaiting triage Issue is waiting for triage label Feb 15, 2022
@me-no-dev
Copy link
Member

this is being worked on: #6280

@VojtechBartoska
Copy link
Contributor

Duplicate #6266

@VojtechBartoska VojtechBartoska added Resolution: Duplicate Issue is a duplicate of another issue and removed Status: Awaiting triage Issue is waiting for triage labels Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Duplicate Issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants