dtcooper / raspotify

A Spotify Connect client that mostly Just Works™
https://dtcooper.github.io/raspotify
MIT License
4.63k stars 213 forks source link

Error after update: couldn't parse packet from 192.168.0.174:5353: type 47 is invalid #499

Closed wieluk closed 2 years ago

wieluk commented 2 years ago

Compatible OS

Latest Version

Due Diligence

What happened?

I updated to the newest version and now I get this error message:

Jan 17 17:41:40 VpnPi librespot[18501]: [2022-01-17T16:41:40Z WARN libmdns::fsm] couldn't parse packet from 192.168.0.174:5353: type 47 is invalid

Now raspotify doesn't show up on my phone or computer anymore.

Does anyone know how to fix this?

Relevant log output

No response

JasonLG1979 commented 2 years ago

What is 192.168.0.174?

wieluk commented 2 years ago

My phone

JasonLG1979 commented 2 years ago

Not much in libmdns (the zeroconf implementation that librespot uses) has changed in a while. I'm not a mdns expert but my gut tells me that it's not a librespot issue since your phone for some reason seems to be sending invalid packets, or at least they're invalid by the time librespot gets them?

Stupid question: Have you tried resetting everything?

wieluk commented 2 years ago

yea it works now but only when I add my spotify account

JasonLG1979 commented 2 years ago

yea it works now but only when I add my spotify account

Then something on your network is mangling mdns.

JasonLG1979 commented 2 years ago

Ok I'm going assume from the lack of response that either you've solved the problem, it's solved itself or you've given up.

No matter the case I'm going to close this since it doesn't appear to be a librespot and certainly isn't a Raspotify issue.

benklop commented 2 years ago

i have this issue as well. I just installed and haven't done any configuration yet.

benklop commented 2 years ago

https://github.com/librespot-org/libmdns/issues/19 appears relevant. looks like switching to avahi fixes it

JasonLG1979 commented 2 years ago

librespot-org/libmdns#19 appears relevant. looks like switching to avahi fixes it

It may? It is possible to build with the with-dns-sd feature but that uses the way way deprecated Apple Bonjour compatibility layer of Avahi so that's a no-go. What really needs to happen is for someone to rewrite the mDNS bits to use the proper Avahi API.

benklop commented 2 years ago

it does in fact fix it for me.