fr0tt / benotes

An open source self hosted notes and bookmarks taking web app.
https://benotes.org
MIT License
718 stars 49 forks source link

Importing Bookmarks: Failed. Error 500 #92

Closed roughnecks closed 10 months ago

roughnecks commented 11 months ago

Hi,

I tried importing bookmarks from Firefox and Chrome exports.. both failed with the error in subject.

If you can tell how to check for more detailed error messages I would appreciate - or if you have a solution, that is :)

I can see some of them were imported, but like 10 out of 100?

fr0tt commented 11 months ago

Hi again,

I guess bookmark no 11 then probably causes the error. You can try to change in your .env file the variables to APP_ENV=local and APP_DEBUG=true and check if /var/www/storage/logs/laravel.log contains anything valuable (or upload the content of this file here)

roughnecks commented 11 months ago

If I change to APP_ENV=local, will I be able to access the app outside of localhost? Asking because I have installed Benotes on a VPS and connect from home (I don't have a GUI on the VPS to run a browser..)

fr0tt commented 11 months ago

It has nothing to do with the infrastructure you're using. Keep in mind to change the variables back to their original values after testing.

roughnecks commented 11 months ago

OK, I looked at the log and found out this:

[2023-10-16 10:38:02] local.ERROR: Unable to init from given url (https://discordapp.comundefined//discord.com/assets/652f40427e1f5186ad54836074898279.png). {"userId":1,"exception":"[o
bject] (Intervention\\Image\\Exception\\NotReadableException(code: 0): Unable to init from given url (https://discordapp.comundefined//discord.com/assets/652f40427e1f5186ad548360748982
79.png). at /home/notes/benotes/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:85)
[stacktrace]

so I deleted my discord bookmark and it almost worked.. "almost" because this time it gave me a 504 IIRC but the laravel.log shows nothing new and my bookmarks seems to be all there (cannot be 100% sure tho)

fr0tt commented 11 months ago

I'm curious, did your Discord bookmark originally look like this or was there no "undefined" in it before ?

Seems the task took longer then your PHP configuration allows (max_execution_time).

roughnecks commented 11 months ago

This is the bookmark: "https://discordapp.com/channels/@me"

As for PHP, I will take a look!

EDIT: added missing bookmark link

roughnecks commented 11 months ago

I edited my previous comment with the actual bookmark, sorry but replying from email messed up!