DescriptionUsing any Kavita user without both Admin and Login roles result in a 403 Forbidden status code when the Kavita widget queries the Kavita server stats endpoint. Adding both Admin and Login roles satisfies the endpoint requirements. A documentation PR will follow. homepage versionv0.8.7 (05a7c0f) Installation methodDocker Configuration- Media:
- Kavita:
icon: kavita.svg
href: http://media.local:5000/all-series
description: Comics
widget:
type: kavita
url: http://media.local:5000
username: homelab
password: password123Container Logs[2024-02-01T02:40:32.181Z] error: Error getting data from Kavita: http://media.local:5000/api/Stats/server/stats status 403. Data: Browser LogsNo response TroubleshootingSkipped |
Replies: 2 comments
|
Based on the information provided, it appears that the Kavita widget is encountering a 403 Forbidden error when attempting to query the server stats endpoint. This is likely due to the user account specified in the widget configuration not having the necessary roles to access the endpoint. To resolve this issue, you should ensure that the user account If you are not sure how to assign roles to a user in Kavita, you may need to refer to the Kavita documentation or seek assistance from the Kavita support community. Once you have assigned the necessary roles to the user, you should update the widget configuration with the correct credentials and restart the Homepage container to apply the changes. If you continue to experience issues after assigning the roles, you may want to check the Kavita server logs for any additional information that could help diagnose the problem. Please let me know if you need further assistance or if there are any other details you can provide that might help resolve the issue. Thanks for posting a discussion about homepage here on GitHub. Homepage now uses a fancy new AI tool thanks to our friends at Glime, so the answer below is the AI bot's attempt to answer your question. If you feel it's sufficient you can mark the answer and close this post, otherwise feel free to leave it open of course! Thanks for using Homepage! ❤️ This comment was generated by Glime. |
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Based on the information provided, it appears that the Kavita widget is encountering a 403 Forbidden error when attempting to query the server stats endpoint. This is likely due to the user account specified in the widget configuration not having the necessary roles to access the endpoint.
To resolve this issue, you should ensure that the user account
homelabhas both the Admin and Login roles assigned within the Kavita application. These roles are required to satisfy the endpoint's permission requirements and allow the widget to successfully retrieve data from the Kavita server.If you are not sure how to assign roles to a user in Kavita, you may need to refer to the Kavita documentation…