-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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]: "Could not find resource text/js/.js to load" #46502
Comments
I had the same issue in nextcloud AIO I believe this should be posted in the app repo instead. |
☝️ |
Being curious, how did you find the source of this error since there are no further informations in the logs? |
We opted not to use the app causing the error as we have other more secure ways to display html/php content (there is an app that allows you to display external links as iframe apps, as long as your remote server is secure and maintained by and you account from cross site vulnerabilities, it should be a safer way to go). |
@ninjazan420 basic plugin/app troubleshooting, clear the log disable all apps and enabled one by one while checking the log with each activation, and isolate the app that triggers it |
Alright, thank you very much :) |
The culprit is in the htmlviewer app, file Util::addScript('text', null, Application::APP_ID); Maybe it's just an oversight? |
This is not an oversight, it's so i can force NC to load the app after mine and i can register a handler for html files. |
@marius-wieschollek Pardon my ignorance but where can I Iearn more about the |
I tried to see if I could enhance the logging this morning (to log the original app that registered the script). It doesn't look like we can log the original app in the ResourceLocator. The check (and associated logging) is too far along. All we have at that point is the path to the script.
We have similar issues rich richdocuments and onlyoffice. One quick hack might be something like nextcloud/text#2448 (or even nextcloud/richdocuments#2301). Maybe we can come up with a better way of prioritizing handler registration - e.g.
Hmm... actually looks like we've got two Issues covering this area so let's move there: |
Bug description
Over the last two days, I see this message recurring over and over in the log:
{"reqId":"**","level":3,"time":"**","remoteAddr":"**","user":"**","app":"jsresourceloader","method":"GET","url":"/apps/files/","message":"Could not find resource text/js/.js to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.3.4","data":{"app":"jsresourceloader"},"id":"***"}
Steps to reproduce
This seems to be triggered whenever the affected user uses the files app
Expected behavior
There should be no such warning
Installation method
Community Web installer on a VPS or web space
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 28.0.1 to 28.0.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: