-
Notifications
You must be signed in to change notification settings - Fork 92
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
Jsresourceloader errors #6521
Labels
Comments
I cannot reproduce that. Unfortunately the log message doesn't have a trace to tell where it is being called from. Can you maybe apply the following patch to your server, get a fresh log line and share that here? That would give us a clear trace where that is being called. diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php
index aad999f939a..53c95d49407 100644
--- a/lib/private/Template/JSResourceLocator.php
+++ b/lib/private/Template/JSResourceLocator.php
@@ -87,6 +87,7 @@ class JSResourceLocator extends ResourceLocator {
$this->logger->error('Could not find resource {resource} to load', [
'resource' => $script . '.js',
'app' => 'jsresourceloader',
+ 'exception' => new \Exception(),
]);
} |
Hi ! {
"reqId": "ZxE5vzyQRcfnxBN2ZHib-gAAABE",
"level": 3,
"time": "2024-10-17T16:22:24+00:00",
"remoteAddr": "***REDACTED***",
"user": "Leo",
"app": "jsresourceloader",
"method": "GET",
"url": "/apps/files/",
"message": "Could not find resource text/js/.js to load",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",
"version": "30.0.1.2",
"exception": {
"Exception": "Exception",
"Message": "",
"Code": 0,
"Trace": [
{
"file": "/var/www/nextcloud.placeholder.tld/lib/private/Template/ResourceLocator.php",
"line": 51,
"function": "doFind",
"class": "OC\\Template\\JSResourceLocator",
"type": "->"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/private/TemplateLayout.php",
"line": 380,
"function": "find",
"class": "OC\\Template\\ResourceLocator",
"type": "->"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/private/TemplateLayout.php",
"line": 216,
"function": "findJavascriptFiles",
"class": "OC\\TemplateLayout",
"type": "::"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/private/legacy/OC_Template.php",
"line": 119,
"function": "__construct",
"class": "OC\\TemplateLayout",
"type": "->"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/public/AppFramework/Http/TemplateResponse.php",
"line": 189,
"function": "fetchPage",
"class": "OC_Template",
"type": "->"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/private/AppFramework/Http/Dispatcher.php",
"line": 159,
"function": "render",
"class": "OCP\\AppFramework\\Http\\TemplateResponse",
"type": "->"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/private/AppFramework/App.php",
"line": 161,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud.placeholder.tld/lib/base.php",
"line": 1001,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud.placeholder.tld/index.php",
"line": 24,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud.placeholder.tld/lib/private/Template/JSResourceLocator.php",
"Line": 90,
"message": "Could not find resource {resource} to load",
"exception": [],
"CustomMessage": "Could not find resource text/js/.js to load"
},
"id": "671139e651564" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, I've been getting errors from the text app (NC's notepad) about the jsresourceloader not being able to load text/js/.js. The text app works fine. But its throwing a lot of log entries (like handreads everyday, see screenshot)
Here are my system info:
OS: Ubuntu server 24.04.1 LTS
NC version: 29.0.7.1
Web server: Apache
db engine: Mariadb 10.11.8
php: 8.3
User backend is on the db
Here's one of the handreads of the same log entries I'm getting
No issues with the signing status of my instance
Here's my instance's config:
Thanks.
The text was updated successfully, but these errors were encountered: