-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Infinite Load Times and REST API Self Link Mismatches Causing Frontend Sluggishness in DSpace #9884
Comments
This issue is potentially duplicates with #8577? |
I actually don't think it's duplicates with the problem above. Not really sure what the source of the issue is but I can't dedicate any more time to it. Does anyone else have this problem? Logged-in admins experiencing intermittent infinite load times and having to refresh the browser page a bunch? |
@aseyedia : As of today, I've not seen this issue reported by anyone else (e.g. on mailing lists, Slack or in GitHub). We are also not seeing this behavior on our Demo site (running 8.0) at https://demo.dspace.org So, that makes me immediately suspect that either you have something different in your installation, or your "data" is in some way unique. It's really impossible for me to guess at though, because I cannot reproduce this issue anywhere. My only suggestions are to see if any of this helps:
Regarding what you shared so far, everything you shared above from your logs is a WARN and not an ERROR. "WARN" messages do NOT always imply a bug or issue, so they may be false positives. You want to be looking for ERROR messages in log files. For instance while #8577 is annoying (as it may appear in the logs quite a bit), these "self link" mismatch messages are NOT severe bugs, and (as far as I'm aware) do NOT impact performance. These messages are indications of minor differences between the link sent to the REST API and the "self link" returned (usually caused by the REST API simply failing to return a passed parameter back in response). They are just a sign that the REST API code may need minor cleanup, but it should not impact performance. (I can also confirm the demo site has these "self link" mismatches in the logs, and they have no impact there.) |
@tdonohue Thanks for getting back to me. I guess, depending on one's outlook, this could be good news, because if it's something I did to cause this to happen, then I can also do something to reverse it. We are observing this problem on both of the two DSpace instances I'm developing so clearly it's some "feature" or "customization" that I added in. I'll come back with more details and if I figure out what it was, I'll let everyone know so that they can steer clear of doing what I did. |
I'm going to close this as incomplete and open a new issue with a more precise description and steps to reproduce. |
Prologue
This is an x-post from DSpace/dspace-angular#3406; it started with me thinking this was mostly a frontend issue and now I'm not quite sure, because I think the source of the issue is something other than what I had originally thought. I am going to mostly replicate the other issue here but with some additional details that I think will be relevant.
Describe the bug
When using DSpace as a logged-in administrator and particularly when navigating the "Edit Item" tab(s) (or even just clicking "Edit Item"), we experience persistent issues with infinite load times and sluggishness in the DSpace frontend. Often this will require the user (admin) to refresh more than once to get the frontend to work.
Back in August, I submitted issue #3252 (potential duplicate of #2924) which was about the DSpace frontend web browser hanging and crashing when viewing
src/app/item-page/versions/item-versions.component.html
. @alexandrevryghem implemented a solution in this PR here DSpace/dspace-angular#3253 and I copied and pasted his changes into myitem-versions.component
. This solved the "hanging" issue but now I suspect that this fix is potentially playing some role in my current predicament. From the DevTools console, I can tell that numerous REST API request/response mismatches are occurring, particularly related toself
links in the API responses:However, I am also gettin this error, and I am starting suspect it might be the true source of the issue, because I am seeing it appear in the logs more often:
Environment:
DSpace Version: 8.0
Frontend Framework: dspace-angular (specific branch: alexandrevryghem/dspace-angular@d09f529)
Solr Version: 8.11.3
Web Browser: Google Chrome 129.0.0.0 on macOS
Additional Context: The issue appears to be related to self-referencing entities and REST API endpoint discrepancies. I have also made a number of changes to the DSpace frontend which are not accounted for here, but nothing pertaining to the API call-and-response. I also am not sure if this is more of a backend or frontend issue and I would be happy to migrate this ticket.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The frontend does not hang when "Edit Item" is navigated.
Related work
The text was updated successfully, but these errors were encountered: