toverainc / willow

Open source, local, and self-hosted Amazon Echo/Google Home competitive Voice Assistant alternative
https://heywillow.io/
Apache License 2.0
2.61k stars 96 forks source link

[BUG] WILLOW: hass_post: failed to contact Home Assistant: HTTP 400 #232

Closed maxi1134 closed 1 year ago

maxi1134 commented 1 year ago

I just did a fresh install and all seems to work, but I get an error 400 when talking to the ESPbox (non lite)

I (05:13:11.975) WILLOW: Using WIS URL 'https://infer.tovera.io/api/willow'
I (05:13:11.983) WILLOW: WIS HTTP client starting stream, waiting for end of speech
I (05:13:13.016) WILLOW: AUDIO_REC_VAD_END
I (05:13:13.017) WILLOW: AUDIO_REC_WAKEUP_END
I (05:13:13.052) WILLOW: WIS HTTP client HTTP_STREAM_POST_REQUEST, write end chunked marker
I (05:13:13.284) WILLOW: WIS HTTP client HTTP_STREAM_FINISH_REQUEST
I (05:13:13.284) WILLOW: WIS HTTP Response = {"text":"What is your name?","language":"en"}
I (05:13:13.290) WILLOW: HASS URL: http://192.168.0.15:8123/api/conversation/process
I (05:13:13.297) WILLOW: sending '{"text":"What is your name?","language":"en"}' to Home Assistant API on 'http://192.168.0.15:8123/api/conversation/process'
I (05:13:13.457) WILLOW: HTTP status='400' content_length='25'
E (05:13:13.460) WILLOW: hass_post: failed to contact Home Assistant: HTTP 400

Any help would be appreciated!

nikito commented 1 year ago

Did you create a new hass token and add it to the configuration? Also what version of HA are you on?

maxi1134 commented 1 year ago

A new token fixed the issue, cheers!