Since it is my first post here, hello to all.
I have a strange issue: I installed beets a while ago and imported all my music in it. All went fine and well.
But now I’m looking into having Beets as a back-end to an Ampache streaming webserver.
So Activated the web plugin and configured it it the config file.
Beets web runs, but retrieving any ID throws an error.
Issuing something like:
$ curl http://beets-server:8337/item/4
500 Internal Server Error
(Omitting rest of HTML text)
Beets itself is run as
beet web, of course shows this:
[2020-09-17 21:43:27,216] ERROR in app: Exception on /item/4 [GET]
Traceback (most recent call last):
File “/usr/lib/python3.8/site-packages/flask/app.py”, line 2446, in wsgi_app
File “/usr/lib/python3.8/site-packages/flask/ctx.py”, line 396, in push
File “/usr/lib/python3.8/site-packages/flask/ctx.py”, line 350, in match_request
result = self.url_adapter.match(return_rule=True)
File “/usr/lib/python3.8/site-packages/werkzeug/routing.py”, line 1873, in match
rv = rule.match(path, method)
File “/usr/lib/python3.8/site-packages/werkzeug/routing.py”, line 902, in match
new_path = “|”.join(self.build(result, False))
File “/usr/lib/python3.8/site-packages/werkzeug/routing.py”, line 1040, in build
File “”, line 1, in <builder:’/item/idlist:ids’>
File “/usr/lib/python3.8/site-packages/beetsplug/web/init.py”, line 172, in to_url
TypeError: sequence item 0: expected str instance, int found
With my minimal knowledge of Python, I assume something in the URL is incorrect, but I don’t know what.
Has someone else had tis issue, and how can I resolve or debug it?
beets version 1.4.9
Python version 3.8.5
plugins: acousticbrainz, badfiles, chroma, convert, discogs, edit, embedart, fetchart, fromfilename, ftintitle, fuzzy, info, inline, lastgenre, mbsync, permissions, replaygain, rewrite, scrub, the, web, zero
Running on Archlinux with beets from archlinux repository, as all the supporting packages for plugins. e.g. no pip is used.