fauxmo icon indicating copy to clipboard operation
fauxmo copied to clipboard

POST request using ESP32 to Fauxmo works when running Fauxmo with -vvv but not -vv

Open ChazTuna opened this issue 3 months ago • 23 comments

  • Issues not following the template may be closed for that reason alone.
  • Operating system and version: Raspberry Pi Bookworm
  • Python version: 3.11
  • Fauxmo version (fauxmo --version): v0.8.0
  • Echo device type (e.g. Echo, Echo Plus, Dot): Echo
  • Echo Firmware Version:

My Issue

I built a request sent via an ESP32 to Fauxmo on my locl network. The request WORKS when I run Fauxmo in triple V (-vvv) mode but not when I run Fauxmo with two: (-vv)

In more detail the request is recognized in both instances, but the data of the request is not seen with the -vv.

Maybe there is a delay or timing issue? In -vvv mode Fauxmo read the whole request, but when in -vv the udp read gets stopped?

WHYT

I tried adding more debug "warning" points in protocols.py dumping the "msg" variable. With "-vvv" I get the whole message as sent with the POST request data. With "-vv" I get the same headers etc. but not the POST request data.


Please make sure you've taken these steps before submitting a new issue:

  • [X ] Try to reproduce the issue with Fauxmo installed in a venv
  • [ X] Ensure you're running a supported version of Python
    • Requires Python >= 3.2 for Fauxmo < 0.3.0
    • Requires Python >= 3.4.4 for Fauxmo >= 0.3.0
    • Requires Python >= 3.6.0 for Fauxmo >= 0.4.0
  • [X ] Run Fauxmo in debug mode (-vvv) and include relevant output (see comments)
  • [ ] Include your Fauxmo config.json (not needed)
  • [ X] Search the existing (including closed) issues
  • [ X] Please use codeblocks around your debug output and config

ChazTuna avatar Apr 01 '24 22:04 ChazTuna