spotisub: Python error
Here I am again. After more than an hour I took a look at Navidrome and nothing new appeared. So I checked the Subdify log and found this:
2024-09-12 16:59:07 ERROR Job "artist_reccomendations (trigger: interval[1:00:00], next run at: 2024-09-12 17:59:07 CEST)" raised an exception
Traceback (most recent call last):
File "/home/user/.local/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/user/subtify/./main.py", line 145, in artist_reccomendations
generate_playlists.show_recommendations_for_artist(random.choice(generate_playlists.get_artists_array_names()))
File "/home/user/subtify/./generate_playlists.py", line 41, in get_artists_array_names
artists = pysonic.getArtists()
File "/home/user/.local/lib/python3.10/site-packages/libsonic/connection.py", line 1611, in getArtists
res = self._doInfoReq(req)
File "/home/user/.local/lib/python3.10/site-packages/libsonic/connection.py", line 2720, in _doInfoReq
res = self._opener.open(req)
File "/usr/local/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/local/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/local/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 405: Method Not Allowed
Everything looks fine, the service is green, but something still blocks it.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (10 by maintainers)
This is spotify fault, I insert in those playlists what spotify send me.
He parse the library using song artist and song name. But like I said before this is a work in progress and some songs may not be found yet.
Anyways this is my log from today (saved tracks) , I almost have everything and the log is this:
no.
I am implementing better track matching and word exclusion in the next release planned for today.
Anyways we’re going offtopic now, the python error looks solved and you’re correctly running subtify. If you need any other help just PM me or add me on discord.
Credentials and ports are ok, I can’t ping from inside container (in Portainer), because “ping” is missing and cannot be installed. Anyway, I have merged the 2 composes, will see what happens and check back.