Suwayomi / Suwayomi-Server

A rewrite of Tachiyomi for the Desktop
Mozilla Public License 2.0
3.84k stars 198 forks source link

[Bug] Local source disappears with server error after browsing other extension #866

Closed kairakyu closed 6 months ago

kairakyu commented 6 months ago

Device information

Steps to reproduce

  1. Run using docker-tachidesk docker-compose.yml, adding these environment vars:
      - WEB_UI_CHANNEL=preview
      - DOWNLOAD_AS_CBZ=true
      - FLARESOLVERR_ENABLED=true
      - FLARESOLVERR_URL=http://flaresolverr:8191

    Open Web UI and view the "Browse" page, looks okay: 1_local_source_exists

  2. Configure third-party extension repo and install NHentai, issue may exist for other extensions that use flaresolverr but I haven't checked 2_install_extension
  3. Click on NHentai to browse, wait for flaresolverr to finish 3_flaresolverr_done
  4. Go back to "Browse" page, refresh. Local source is now missing and server throws an error 4_refresh_browse
  5. Error log from server when loading "Browse" page 5_error_log.txt

Expected behavior

Browsing other sources should not remove the local source from the list of available sources.

Actual behavior

See steps 4 and 5 above.

Other details

Tried to reproduce this with a few other extensions and couldn't get it to happen, might only occur with extensions that use flaresolverr.

Syer10 commented 6 months ago

Likely related to deregistering all sources after a new UA was sent to us. I'll take a look into fixing that when I can

Syer10 commented 6 months ago

Fixed in the latest build 👍