| Post Reply | RetroFed Forum Forum Index » Lemmy Support |
| Author | Message | ||
|---|---|---|---|
|
aary
xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf Joined: 2026-06-11 |
My browser says (in F12 console of firefox):
the file starts with
and DeepSeek says that The lemmy.ml instance adds that image without problems. |
||
| 2 Original | |||
Artwork
lemmy.world
artwork@lemmy.worldJoined: 2025-12-03 |
Wonderful day!
Yet, these two are valid in terms of JavaScript syntax. Meanwhile, DeepSeek states utter nonsense. The space is not required in JavaScript declarations. You may check it yourself:
|
||
| 2 | |||
|
aary
xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf Joined: 2026-06-11 |
Wonderful day! The actual script file is minified. And we may see the actual position the error points to: 2:1170023. That is the second line and 1170023 character on that line. If we check it out manually, we may see the following, from 1169975 to 1170025 character positions: (r.state=u({},r.state,{form:u({},r.state.form,d)})) hw mentioned in the error is probably the following function: funct...
Ok, what I should do to fix the "Syntax Error" message during image uploading? |
||
| 1 | |||
Artwork
lemmy.world
artwork@lemmy.worldJoined: 2025-12-03 |
Ok, what I should do to fix the "Syntax Error" message during image uploading?
I would start by deploying non-minified scripts, and with the error/exception thown, set breakpoint in the previous stacktrace step. Then, reload/repeat, and follow the logic step by step until the exception stage. |
||
| 1 | |||
|
aary
xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf Joined: 2026-06-11 |
I would start by deploying non-minified scripts, and with the error/exception thown, set breakpoint in the previous stacktrace step. Then, reload/repeat, and follow the logic step by step until the exception stage.
It's a bit illogical. I have exactly the same version as lemmy.ml.
|
||
| 1 | |||
Artwork
lemmy.world
artwork@lemmy.worldJoined: 2025-12-03 |
It's a bit illogical. I have exactly the same version as lemmy.ml. But their instance works, and mine - doesn't. BE: 0.19.19
Is the following found related?: Regarding breakpoints mentioned above, please check the following: |
||
| 1 | |||
|
aary
xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf Joined: 2026-06-11 |
Is the following found related?: - https://github.com/LemmyNet/lemmy/issues/2217#issuecomment-1099584771 Regarding breakpoints mentioned above, please check the following: - https://developer.chrome.com/docs/devtools/javascript/breakpoints#exceptions
I don't know is it related or not. I have only one container instead of two, and I use Firefox instead of Chromium. |
||
| 2 | |||
Artwork
lemmy.world
artwork@lemmy.worldJoined: 2025-12-03 |
I don't know is it related or not. I have only one container instead of two, and I use Firefox instead of Chromium. Theoretically it's possible that there is no enough access rights for images data volume, but I didn't checked that yet (and in this case the error message is not clear and helpfull).
Yes, indeed! Please do check out the volume (bind-)mount permissions of the container. |
||
| 1 | |||
|
aary
xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf Joined: 2026-06-11 |
Yes, indeed! Please do check out the volume (bind-)mount permissions of the container. Weird, that someone unknown downvoted our messages. Perhaps, the person has life issues, unfortunately...
|
||
| 2 | |||
|
aary
xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf Joined: 2026-06-11 |
Yes, indeed! Please do check out the volume (bind-)mount permissions of the container. Weird, that someone unknown downvoted our messages. Perhaps, the person has life issues, unfortunately...
the problem was in reverse proxy settings. |
||
| 2 | |||
Artwork
lemmy.world
artwork@lemmy.worldJoined: 2025-12-03 |
the problem was in reverse proxy settings. but during the reconfiguration process i also switched the setup from files to minio and from sled (pict-rs relies on an embedded key-value store called sled to store metadata) to postgres
It works! Hurray! Hurray! Awesomely done! Just incase, though the project is great, Minio is known to have issues in management, unfortunately. Have you considered the time-verified Redis for key/value storage? |
||
| 1 | |||
|
aary
xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf
aary@xn--e1aghfa.xn--e1aqbccjfc.xn--p1acf Joined: 2026-06-11 |
It works! Hurray! Hurray! Awesomely done! Just incase, though the project is great, Minio is known to have issues in management, unfortunately. Please check the following: - https://redd.it/1pd97nq (It seems the project has come to an abrupt halt...) [2025-12-03] Have you considered the time-verified Redis for key/value storage?
I prefer to keep the setup as it is now. But if I will need k/v storage next time, I will use something else. And then, when it will be time to upgrade, i will migrate from minio to next choice. Or, just drop this setup and create a new one. |
||
| 2 | |||
| Post Reply |
Back to top |