Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.17k stars 152 forks source link

Wide character in subroutine entry #1067

Open 53nemu opened 2 weeks ago

53nemu commented 2 weeks ago

LRR Version and OS Please tell which version you're running, as well as your OS and installation method. (Windows, Docker, Native)

debian docker

Bug Details Please detail the bug here.

Hello, I apologize as I am not a native English speaker, so I am using ChatGPT to translate this conversation. I installed the latest version of the image using Portainer, but during the initial run, Portainer indicated that the container was unhealthy (with the same error). After uploading a plugin obtained from a friend (who confirmed that the plugin works without errors on their end) and running it, I am no longer able to access the plugin page (I received a lovely image of Mayoi Hachikuji). When I used debugging and performed the actions mentioned above, a new page appeared with the following error log:

Matching Logs Post any logs you have encountered when reproducing the bug.
If possible, switch the app to Debug Mode in order to have more logs.

Wide character in subroutine entry at /usr/local/share/perl5/site_perl/Mojo/JSON.pm line 31.

my $TEXT   = Cpanel::JSON::XS->new;
$_->canonical->allow_nonref->allow_unknown->allow_blessed->convert_blessed->stringify_infnan->escape_slash
->allow_dupkeys
for $BINARY, $TEXT;
monkey_patch __PACKAGE__, 'encode_json', sub { $BINARY->encode($_[0]) };
monkey_patch __PACKAGE__, 'decode_json', sub { $BINARY->decode($_[0]) };
monkey_patch __PACKAGE__, 'to_json',     sub { $TEXT->encode($_[0]) };
monkey_patch __PACKAGE__, 'from_json',   sub { $TEXT->decode($_[0]) };

Screenshots If applicable, add screenshots to help explain your problem.

53nemu commented 2 weeks ago

Hello, I apologize as I am not a native English speaker, so I am using ChatGPT to translate this conversation. I am not sure why the error content I submitted earlier became "No description provided," so please allow me to rewrite it.

I am running the container with Docker. I installed the latest version of the image using Portainer, but during the initial run, Portainer indicated that the container was unhealthy (with the same error). After uploading a plugin obtained from a friend (who confirmed that the plugin works without errors on their end) and running it, I am no longer able to access the plugin page (I received a lovely image of Mayoi Hachikuji). When I used debugging and performed the actions mentioned above, a new page appeared with the following error log:

Wide character in subroutine entry at /usr/local/share/perl5/site_perl/Mojo/JSON.pm line 31.

26 my $TEXT = Cpanel::JSON::XS->new;
27 $_->canonical->allow_nonref->allow_unknown->allow_blessed->convert_blessed->stringify_infnan->escape_slash
28 ->allow_dupkeys
29 for $BINARY, $TEXT;
30 monkey_patch PACKAGE, 'encodejson', sub { $BINARY->encode($[0]) };
31 monkey_patch PACKAGE, 'decodejson', sub { $BINARY->decode($[0]) };
32 monkey_patch PACKAGE, 'tojson', sub { $TEXT->encode($[0]) };
33 monkey_patch PACKAGE, 'fromjson', sub { $TEXT->decode($[0]) };
34 }
35  
36 sub decode_json {
jinsu2000 commented 3 days ago

I'm getting a similar error as well, but I haven't added a new plugin. I came after modifying the settings of the plugin. So could this be a plugin-related issue? —Translated by Bing