ChrisRomp / addon-ecowitt-proxy

An HTTP receiver for Ecowitt data for sending to the Home Assistant integration.
Apache License 2.0
14 stars 2 forks source link

HA API Error: 404: Not Found #17

Closed Clueless-tech closed 9 months ago

Clueless-tech commented 9 months ago

@ChrisRomp

Ecowitt Proxy does not forward data to Ecowitt Integration. No devices or entitets are discovered.

Log is spammed with HA API ERROR: 404. Can you please have a look at this.

bild bild bild bild

StevenGFX commented 9 months ago

I'm having this same issue.

ChrisRomp commented 9 months ago

Can you (both) provide some details on your Home Assistant setup? Are you running in Docker, HA Yellow, Raspberry Pi, etc.? Just curious about things I can try to reproduce the error.

The 404 is kind of weird because it will be using the API between containers, so I'm wondering what's different.

StevenGFX commented 9 months ago

Hey @ChrisRomp, Thanks for the reply. I can add a little bit of context, but I'm not sure exactly what you need I can follow up with any request. I'm using HA Yellow. My Internal/External URLs are the same (home.foodomain.com).

ChrisRomp commented 9 months ago

I'll do some experimenting soon to try and reproduce the issue. I'm also running HA Yellow but I'm a release or two behind.

Clueless-tech commented 9 months ago

Hi @ChrisRomp,

I'm running HA on Raspberry Pi.

I also forgot to mention that I'm using the integrated Ecowitt integration. Not the one in HACS. Does the proxy support both? https://www.home-assistant.io/integrations/ecowitt

-- Core 2023.11.0 Supervisor 2023.10.1 Operating System 11.1 Frontend 20231030.1

StevenGFX commented 9 months ago

I'm using the intergated one as well.

Clueless-tech commented 9 months ago

@ChrisRomp

Have you been able to reproduce the error?

StevenGFX commented 9 months ago

I had a chance to look at this again this evening and realized we both copied the webhook path (/api/webhook/[webhook_id]) instead of the Webhook ID itself. 🤦🏻 Sending a post request now give me 200.

Clueless-tech commented 9 months ago

@StevenGFX Aha! You are 100% correct. Changed from /api/webhook/webhookID to only webhookID. It works great now, the Ecowitt integration found the device and all its entities.

ChrisRomp commented 9 months ago

Thank you both for working it out. I was at a conference this week so hadn't yet had a chance to dig in. Glad it was something that simple.