ecowitt2mqtt: Invalid HTTP Request

Describe the bug Logs are producing “WARNING: Invalid HTTP request received.”

To Reproduce docker run -it -v <path>/config:/config -e ECOWITT2MQTT_CONFIG=/config/config.yaml -p 8080:8080 bachya/ecowitt2mqtt:2023.07.0

My config file is:

---
endpoint: /data/report
input_unit_system: imperial
mqtt_broker: emqx.<fqdn>
mqtt_port: 1883
mqtt_username: EW2MQTT
mqtt_password: # no password required for my emqx
mqtt_topic: ew2mqtt
output_unit_system: imperial
port: 8080
raw_data: false
verbose: true # changed this to try to get better errors without success
diagnostics: true # ditto

My hub settings are: Screenshot 2023-07-14 at 10 16 50 AM

Expected behavior A working ecowitt2mqtt install, however at the moment I’d just like to understand the problem.

Additional context I am assuming I’ve misconfigured something, however I think this is still a valid bug report as I’m stuck debugging because of the vague log warning.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 30 (17 by maintainers)

Most upvoted comments

Let’s leave it open for now; I really would love to figure out what’s going on and help you get unstuck.

No worries–I really appreciate you trying to help debug this. I just confirmed that I’m still having the same problem when I’m on the same VLAN, so I don’t think my network setup is effecting this problem.

If you’d like to close this issue, feel free; it may be one of those ephemeral things that happens only to one person under slightly different gravity or whatever.

Thanks for trying. I’m going to put together a Docker image with some more debug info; I’ll send to you when it’s ready.