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

[Bug Report] Subscription Manager always shows "No subscriptions found." even with subscriptions added #329

Open
melyux opened this issue Aug 15, 2022 · 3 comments · Fixed by #330 · May be fixed by #337
Open

[Bug Report] Subscription Manager always shows "No subscriptions found." even with subscriptions added #329

melyux opened this issue Aug 15, 2022 · 3 comments · Fixed by #330 · May be fixed by #337
Labels
bug Something isn't working

Comments

@melyux
Copy link

melyux commented Aug 15, 2022

Describe the bug
The Subscription Manager always shows "No subscriptions found." despite subscriptions existing and working.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Download > Plugins, create a subscription, confirm that the subscriptions.json file exists under the plugin.
  2. Optionally, wait until a new chapter comes out and see that it downloads automatically.
  3. Go to Download > Subscription Manager.
  4. See "No subscriptions found.":

image

Expected behavior
I assume there's normally a table to view and edit existing subscriptions.

Environment (please complete the following information):

  • OS: Docker
  • Browser: Safari, Chrome
  • Mango Version: Latest (0.27.0)

Docker (if you are running Mango in a Docker container)

  • The docker-compose.yml file you are using, or your .env file.
  mango:
    image: hkalexling/mango
    container_name: mango
    expose:
      - 9000
    ports:
      - 9000:9000
    volumes:
      - ./mango/data:/root/mango
      - ./mango/config:/root/.config/mango

Additional context
Add any other context about the problem here. Add screenshots if applicable.
(See screenshot above)

I can see that the call to <base>/api/admin/plugin/subscriptions?plugin=<plugin> is returning the correct data. I see <p x-show="subscriptions.length === 0" class="uk-text-meta">No subscriptions found.</p> has the subscriptions.length === 0 condition on it (not familiar with the framework here), but I can see from a call to the API myself that subscriptions does not have a zero length.

@melyux melyux added the bug Something isn't working label Aug 15, 2022
@hkalexling
Copy link
Member

That's very strange. Did you see any error messages (from either the web UI or browser console) when loading the page? Normally the response from the API is passed immediately to the subscriptions array (JS code here)

@melyux
Copy link
Author

melyux commented Aug 18, 2022

That's very strange. Did you see any error messages (from either the web UI or browser console) when loading the page? Normally the response from the API is passed immediately to the subscriptions array (JS code here)

No web UI nor console errors. That's why I'm not sure how to debug any further. I only have one plug-in, I'll try adding another one and see if it kickstarts the load upon switching to another plugin. And check the web server error logs, if I can find some. Maybe the internal API request to grab subscriptions per plugin is failing.

@hkalexling
Copy link
Member

I only have one plug-in, I'll try adding another one and see if it kickstarts the load upon switching to another plugin.

Ahh yes that's the issue. I just noticed a bug in the JS code. The subscriptions won't be loaded when you have only one plugin installed. Will fix this in the next update. Thanks for reporting!

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

Successfully merging a pull request may close this issue.

2 participants