Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
http_request on ethernet
#1
A16 with ESPHome is connected by wifi
I try send http_request but it dos'nt work
Log below
[23:17:54][D][http_request.arduino:125]: Content-Length: 170
[23:17:54][ 45046][E][WiFiClient.cpp:517] flush(): fail on fd 50, errno: 11, "No more processes"
[23:17:54][W][component:237]: Component web_server took a long time for an operation (68 ms).

When I connect by ethernet device is rebooted
[23:24:14][ 24068][E][WiFiGeneric.cpp:1438] hostByName(): DNS Failed for mydomain.cloud
[23:24:14][W][http_request.arduino:112]: HTTP R
[23:24:14]assert failed: xEventGroupSetBits event_groups.c:596 (xEventGroup)
[23:24:14]
[23:24:14]
[23:24:14]Backtrace:0x40083b45:0x3ffb3dc00x4008c7a5:0x3ffb3de0 0x40091f2d:0x3ffb3e00 0x4008ccc2:0x3ffb3f30 0x4014b264:0x3ffb3f50 0x40100bdd:0x3ffb3f70 0x40100c99:0x3ffb3fa0 0x40101423:0x3ffb3fc0 0x401085dd:0x3ffb4020 0x4010b833:0x3ffb4070 0x401110aa:0x3ffb40a0 0x401008d9:0x3ffb40c0
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x40083b45: panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
WARNING Decoded 0x4008c7a5: esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
WARNING Decoded 0x40091f2d: __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
WARNING Decoded 0x4008ccc2: xEventGroupSetBits at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/event_groups.c:597 (discriminator 1)
WARNING Decoded 0x4014b264: wifi_dns_found_callback(char const*, ip_addr const*, void*) at C:/Users/IT/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/WiFiGeneric.cpp:1413
WARNING Decoded 0x40100bdd: dns_call_found at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/core/dns.c:999
WARNING Decoded 0x40100c99: dns_correct_response at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/core/dns.c:1197
WARNING Decoded 0x40101423: dns_recv at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/core/dns.c:1364
WARNING Decoded 0x401085dd: udp_input at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/core/udp.c:404
WARNING Decoded 0x4010b833: ip4_input at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/core/ipv4/ip4.c:794
WARNING Decoded 0x401110aa: ethernet_input at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/netif/ethernet.c:186
WARNING Decoded 0x401008d9: tcpip_thread_handle_msg at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/api/tcpip.c:180
(inlined by) tcpip_thread at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/lwip/lwip/src/api/tcpip.c:154
[23:24:14]
[23:24:14]
[23:24:14]
[23:24:14]
[23:24:14]ELF file SHA256: 0000000000000000
[23:24:14]
[23:24:14]Rebooting...

My yaml is simple for test
Code:
esphome:
  name: a16test
  friendly_name: A16

esp32:
  board: esp32dev
  framework:
    type: arduino

logger:
api:
http_request:
  verify_ssl: false

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
  manual_ip:
    static_ip: 10.0.250.43
    gateway: 10.0.250.1
    subnet: 255.255.255.0
    dns1: 10.0.250.1
    dns2: 8.8.8.8

web_server:
  port: 80

i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a

pcf8574:
  - id: "pcf8574_hub_out_1" # for output channel 1-8
    address: 0x24

  - id: "pcf8574_hub_out_2" # for output channel 9-16
    address: 0x25

  - id: "pcf8574_hub_in_1" # for input channel 1-8
    address: 0x22

  - id: "pcf8574_hub_in_2" # for input channel 9-16
    address: 0x21

button:
  - platform: template
    name: "EventButton"
    on_press:
      then:
        - http_request.get:
            url: "http://mydomain.cloud/event.php?object=Kincony&kod=50&desc=test&id=6574254"

In A6 http_request works

Please help
Reply
#2
A6 use by wifi, A16 use by ethernet. maybe you can test with wifi will work well.
Reply
#3
I tried by wifi and by ethernet.
By wifi I get error "[23:17:54][ 45046][E][WiFiClient.cpp:517] flush(): fail on fd 50, errno: 11, "No more processes"
by ethernet device is rebooted as wrote
Reply
#4
i think you can test with our KCS v2 firmware firstly. check whether is a hardware or software problem. if KCS work well, you need to check with your esphome yaml file.
Reply
#5
With KCSv2 firmware server was called.
I checked that problem was generated by hostbyname() function. I replaced in URL domain name to IP address and it works.
I have KC868-A6 too and in A6 calls by domain name works.
Reply
#6
maybe sometime the DNS issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)