-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
Generating a QR code always returns a 500 error #2225
Comments
The service logs should contain more information of the error. |
That's the point indeed: they don't. I'm running shlink this way: and the only logs I see are: I've tried to change the roadrunner configuration (.rr.yml) but even in development mode, I can't see the stacktrace. Where can I find more detailed logs? Thanks |
Sorry, my bad. The application logs should be in the If the folder is empty, then the problem is the lack of permissions to write logs (or other assets), which would cause a 500 error. |
Looks like it depends on the missing logo url. Here's the stacktrace. During the installation I understood that logo was not required, but after looking at the source code it looks like it is. Could you please clarify if the logo is required to generate a QR-code ?
|
I think this is a regression introduced in v4.2.2, by this change specifically shlinkio/shlink-config#37 With that, configuration options that were not set (like the QR code logo) are being set with an empty value, instead of skipped. In this particular case, the logic underneath thinks the logo was set, but the value is empty, causing this error. I'll try to fix this. |
I have just released v4.2.3, which should fix this issue |
Thank you very much. I'll try to update it right away. |
It's fixed now !!! |
Shlink version
4.2.2
PHP version
8.3
How do you serve Shlink
Self-hosted RoadRunner
Database engine
MySQL
Database version
8.0.39
Current behavior
Whenever we try to generate a QR code, we get a 500 status code with the message Unexpected error
Expected behavior
We would expect to get the QR code image
Minimum steps to reproduce
This is a fresh installation so we're not sure why the QR code generation is failing (all necessary extensions should be installed).
Is there a way we can get print the stacktrace and get more details about the error?
The text was updated successfully, but these errors were encountered: