-
Notifications
You must be signed in to change notification settings - Fork 137
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
Error when opening Notes App page #886
Comments
Hmm, that's strange. Until now, you're the only person with this problem. You are saying that this error happens since a couple of months. Do you have an idea, what may have changed at that point? Was it a Nextcloud (server or notes app) update? If yes: please restart your apache httpd server, sometimes the server caches some files. Does the server log contains any errors? Could you please check the Network-tab of your browser console? There should be a request to |
I actually have the same issue since (I believe) upgrading to 24.0. Firefox tells me:
Chromium:
I also use Arch, but nginx+php-fpm instead of apache, and the whole server has been restarted several times since. I have no error in my logs, all HTTP responses in the network tab have a 200 status, including the one to apps/notes/notes. The response content is valid JSON, but it's hard to provide anything interesting while keeping the personal information out :-/ |
Hmmm, interesting. :-/
The response should have this structure: {
"notesData": [
{ "id":123456, "title":"Note title", "modified":1355853787, "category":"Category1", "favorite":false, "readonly":false, "error":false, "errorType":"", "etag":"ca28268242b6ad1ab9db7eb739792a7c" },
...
],
"noteIds": [ 123456, ... ],
"categories": [ "Category1", ... ],
"settings": { "notesPath": "Notizen", "fileSuffix": ".md", "noteMode": "edit", "customSuffix": ".txt" },
"lastViewedNote": 123456,
"errorMessage": null
} Could you please check if your response content does look similar? Especially, I would like to know if the |
It does look correct: {"notesData":[{"id":220,"title":"Note1","modified":1649179676,"category":"","favorite":false,"readonly":false,"error":false,"errorType":"","etag":"6feee4c33d5fad6f33d9342768e9b40d"}, [...]],
"noteIds":[43407,45640,12810,45156,44002,39379,25913,26707,50060,31437,50310,3075,37092,12842,2780,31146,36157,44810,36998,31645,33145,41270,50206,43529,35747,220,28110,37160,2998,40446,23899,45961,15748,12859,38316,42682,24421,10472,2635,42716,3204,38322,31015,3063,43147,14149,45250,2755,20065,49102],
"categories":[],
"settings":{"notesPath":"Notes","fileSuffix":".txt","noteMode":"edit","customSuffix":".txt"},
"lastViewedNote":45961,
"errorMessage":null} I have more entries in |
I have the same error after upgrading from Nextcloud 23.x to 24.0.3 (along with a full system update).
Manually extracting the notes.tar.gz file in the webapps/nextcloud/apps directory installs the app again, but the original error is back as well... What info can I provide to help resolve this issue? I have a similar setup as @rgacogne (Arch Linux with Nginx) |
OK, this is weird. |
I installed the notes app in dev mode and after applying the following change, my browser doesn't throw the error anymore. Even when I undo the change, the error doesn't return. diff --git a/src/store/notes.js b/src/store/notes.js
index 2f9d7da2..e9d98d3c 100644
--- a/src/store/notes.js
+++ b/src/store/notes.js
@@ -116,6 +116,9 @@ const mutations = {
const actions = {
updateNotes(context, { noteIds, notes }) {
// add/update new notes
+ if (!notes || !noteIds) {
+ return
+ }
for (const note of notes) {
// TODO check for parallel (local) changes!
context.commit('updateNote', note) Btw I couldn't get source maps to work in Firefox and chromium, so finding the origin of the error was a PITA. Are source maps working and if not: how would you debug something like this? |
Hey @fvdnabee , thanks for your investigations! Together with @bolderbast 's experience, I think there is a caching problem somewhere. However, I have no idea where it is. Nevertheless, I will add another check for
I'm observing issues with the source maps, too. It looks like the line references in the error console are not correct. After some searching, this could be because we use |
I just released Notes v4.5.0. Please check, if the issue still exists. |
I upgraded Nextcloud to 24.0.4 and Notes to 4.5.0, rebooted the server for good measure but I still have the issue :-/ Is there anything else I can do to help pinpoint the issue? |
For what it is worth, a different user on my instance with no notes also gets the same error. |
Since I still have no idea on fixing this, I just released Notes version 4.5.1 which includes some more debug output (based on #886 (comment)). Please update to this version and try again. Please have a look at your browser's JavaScript console and search for the string |
Same error for me, since I upgraded to Nextcloud 24.0.5. (from v23.x), on archlinux. But I managed to fix it. In fact, I had several 'app_paths' in my config, one of them being writable, and the other, not. The first one, not writable, had still an old version of notes (3.6.1 if I recall correctly), so maybe it created a conflict... I removed the folder in the first app_path, then I unstalled notes with My problem might not be related, but I was getting exactly the same error, so some users might have the same 'broken' setup as me. Before that, I also tried to empty the whole notes folder, but I still had the error. |
@cyberic99 What a wonderful trick!! I first tried it with notes app and worked great, then I did the same for news and contacts apps and solved all issues! Thank you ❤️ |
hey, cool, I m glad I could help ! |
I can confirm that removing the folder in the first |
It looks that this issue cannot be fixed within the Notes app and there is a workaround for it. Therefore, I'll close this issue. |
It's a couple of months that Notes App in browser is showing a generic error saying "Fetching notes has failed. See JavaScript console and server log for details."
In the console I found a bunch of:
I tried Firefox, Brave, Chrome and Falkon too, with and without adblock addons, no luck.
I have no problem from my android app.
Steps to reproduce
Expected behaviour
List of my notes
Actual behaviour
Blank page with errors
Screenshots
Server
Nextcloud configuration:
Client
The text was updated successfully, but these errors were encountered: