solaluset / DandelionMusic

Discord music bot written in Python that supports YouTube, SoundCloud, Spotify, Bandcamp, Twitter and custom files
GNU General Public License v3.0
42 stars 16 forks source link

Spotify song/playlist error #170

Open dpyh121 opened 1 month ago

dpyh121 commented 1 month ago

I already set my tokens but when i try to open song with spotify link. Bot responds "Command raised an exception: ClientConnectorCertificateError: Cannot connect to host open.spotify.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')]"

How can i fix this issue?

Youtube works btw.

dpyh121 commented 1 month ago

screenshot

solaluset commented 1 month ago

This is most likely an issue with your system. Which OS do you use?

dpyh121 commented 1 month ago

Windows 10 Home x64, With all updates done. Youtube songs still work.

solaluset commented 1 month ago

If you're using Spotify API, try without it. If that still doesn't work, I'll try to mitigate this issue by disabling the validation.

solaluset commented 1 month ago

You can also try:

pip install pip_system_certs

And

pip install python-certifi-win32