[solved] I am unable to upload a picture in my instance.
My browser says (in F12 console of firefox):
SyntaxError client.js:2:1170023
hw https://лемми.опенсорс.рус/static/0799f19b/js/client.js:2
the file starts with
/*! For license information please see client.js.LICENSE.txt */
(()=>{var e,t,n,r,o={45850:(e,t,n)=>{"use strict";n.d(t,
and DeepSeek says that e,t,n,r,o should be separated by spaces, i.e. e, t, n, r, o
The lemmy.ml instance adds that image without problems.
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
1170023character on that line. If we check it out manually, we may see the following, from1169975to1170025character positions:hwmentioned in the error is probably the following function: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:
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.
It's a bit illogical. I have exactly the same version as lemmy.ml. But their instance works, and mine - doesn't.
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. 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.
Weird, that someone unknown downvoted our messages. Perhaps, the person has life issues, unfortunately...
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