Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Album lists aren't populating when connecting to Astiga #248

Closed
gravelld opened this issue Sep 15, 2023 · 7 comments
Closed

Album lists aren't populating when connecting to Astiga #248

gravelld opened this issue Sep 15, 2023 · 7 comments
Assignees
Labels
bug Something isn't working server:astiga
Milestone

Comments

@gravelld
Copy link

Hi, I and another user (https://community.asti.ga/discussion/623/cant-connect-to-subsonic-clients#latest) are having a problem connecting Supersonic to Astiga. Almost all lists don't seem to be populating.

For albums, I can see that Supersonic makes a request:

GET /rest/getAlbumList2?c=supersonic&f=xml&offset=0&s=???&type=alphabeticalByName&u=???&v=1.8.0 HTTP/1.1

And Astiga replies:

<?xml version="1.0" encoding="UTF-8"?>
<subsonic-response status="ok" version="1.16.0" serverVersion="Astiga/production" xmlns="http://subsonic.org/restapi">
    <albumList2>
        <album id="109701" parent="109700" title="(Loin des) Rivages" album="(Loin des) Rivages" name="(Loin des) Rivages" artist="Bon Voyage Organisation" artistId="109700" isDir="true" duration="5360" songCount="20" coverArt="109702" created="2023-09-15T10:17:12" year="2022"/>
        <album id="109704" parent="109703" title="1 - Four Orchestral Pieces - Concerto For Orchestra [Boulez]" album="1 - Four Orchestral Pieces - Concerto For Orchestra [Boulez]" name="1 - Four Orchestral Pieces - Concerto For Orchestra [Boulez]" artist="Pierre Boulez" artistId="109703" isDir="true" duration="7198" songCount="18" coverArt="109705" created="2023-09-15T10:17:12" year="1993"/>
        ...

However the albums lists remain blank.

The only thing that seems to work is the genre list, which is populated. However, clicking on a genre shows nothing in its list.

I thought this used to work, but maybe there's something Astiga is doing that Supersonic is not expecting... But a quick review of the Subsonic API checks out.

Maybe there's some logging I can enable?

@dweymouth dweymouth added the bug Something isn't working label Sep 15, 2023
@dweymouth
Copy link
Owner

The logging situation for Supersonic right now is not great, unfortunately. I don't have an option to enable extra verbose logs but I do log out many (most?) errors. If you run it from the command line does it log out any error message? Also is there an Astiga demo server I could connect to for debugging on my end?

@gravelld
Copy link
Author

There is a demo server, but I'll need your email... send it to info@asti.ga .

Oh, I think I've seen the issue:

2023/09/15 19:19:09 error fetching albums: parsing time "2023-09-15T18:19:09" as "2006-01-02T15:04:05Z07:00": cannot parse "" as "Z07:00"

Hmmm I don't think Astiga is sending that second timestamp, where is it coming from?

I don't want to paste the entire output on stdout for fear of sensitive info, but the main logs before that were:

2023/09/15 19:19:08 Starting supersonic...
2023/09/15 19:19:08 Using config dir: /home/gravelld/.var/app/io.github.dweymouth.supersonic/config/supersonic
2023/09/15 19:19:08 Using cache dir: /home/gravelld/.var/app/io.github.dweymouth.supersonic/cache/supersonic
2023/09/15 19:19:08 Creating session lock file
2023/09/15 19:19:08 failed to load theme file "": open /home/gravelld/.var/app/io.github.dweymouth.supersonic/config/supersonic/themes: no such file or directory
2023/09/15 19:19:08 systray error: failed to request name: org.freedesktop.DBus.Error.ServiceUnknown
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:08 Fyne error:  could not load SVG, falling back to static content:
2023/09/15 19:19:08   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/09/15 19:19:08   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/09/15 19:19:09 error fetching albums: parsing time "2023-09-15T18:19:09" as "2006-01-02T15:04:05Z07:00": cannot parse "" as "Z07:00"

@dweymouth
Copy link
Owner

The Fyne SVG errors are just noise, the cause is definitely the timestring parsing. I'm surprised no other Subsonic server has had this issue as I just checked the official API example responses on subsonic.org and they do not have the timezone suffix - I guess every known working server includes it.

In any case it's definitely a Supersonic bug and I'll look into making the time string parsing more robust. I will send you an email to get an account added to the test server so I can confirm it's resolved before I push a fix. It's also been awhile since I've done a Supersonic release so I think I'll release 0.5.2 as soon as this issue is resolved.

@dweymouth dweymouth added this to the 0.5.2 milestone Sep 15, 2023
@dweymouth dweymouth self-assigned this Sep 16, 2023
@dweymouth
Copy link
Owner

dweymouth commented Sep 16, 2023

I think this may be resolved by a5417cc (and dweymouth/go-subsonic@5bb56f4) but I need the Astiga test account to verify (or an Astiga user to build Supersonic from source and test)

@gravelld
Copy link
Author

I sent you that Drew... thanks.

@dweymouth
Copy link
Owner

Tested and resolved!

@gravelld
Copy link
Author

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server:astiga
Projects
None yet
Development

No branches or pull requests

2 participants