this post was submitted on 01 Sep 2023
5 points (72.7% liked)

Lemmy.world Support

3158 readers
186 users here now

Lemmy.world Support

Welcome to the official Lemmy.world Support community! Post your issues or questions about Lemmy.world here.

This community is for issues related to the Lemmy World instance only. For Lemmy software requests or bug reports, please go to the Lemmy github page.

This community is subject to the rules defined here for lemmy.world.

To open a support ticket Static Badge


You can also DM https://lemmy.world/u/lwreport or email [email protected] (PGP Supported) if you need to reach our directly to the admin team.


Follow us for server news ๐Ÿ˜

Outages ๐Ÿ”ฅ

https://status.lemmy.world



founded 1 year ago
MODERATORS
 

Hello, I am new to the site and I am wondering if I am doing something wrong or if this is a browser limitation. Linking images to posts seem to work fine, but this is not an option for avatar icons

I am getting strange JSON errors whenever I attempt to upload or paste images either in posts or at profile settings "Browse..."

I am not too familiar debugging/logging browsers, but here's some logs I found from both Firefox and Chromium

OS: Arch Linux 6.4.7 Browsers: Mozilla Firefox 116.0, Chromium 115.0.5790.110-1

Error attempting to upload avatar icon: Firefox

XHRPOST
https://lemmy.world/pictrs/image
[HTTP/2 403 Forbidden 22ms]

pictrs upload: client.js:2:1776534
Object { state: "failed", msg: SyntaxError }
client.js:2:1776564
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data client.js:2:1776766
    handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
    (Async: promise callback)
    handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
    n https://lemmy.world/static/fd8d452/js/client.js:2
DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property. client.js:2:509245

Chromium

client.js:2     POST https://lemmy.world/pictrs/image 403
(anonymous) @ client.js:2
x @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
u @ client.js:2
uploadImage @ client.js:2
(anonymous) @ client.js:2
p @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
e @ client.js:2
s @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
o.handleImageUpload @ client.js:2
(anonymous) @ client.js:2
client.js:2 pictrs upload:
client.js:2 {state: 'failed', msg: SyntaxError: Unexpected token '<', ")}
client.js:2 SyntaxError: Unexpected token '<', ")
(anonymous) @ client.js:2
Promise.then (async)
o.handleImageUpload @ client.js:2
(anonymous) @ client.js:2
client.js:2 DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.
buildToast @ client.js:2
showToast @ client.js:2
Xe @ client.js:2
(anonymous) @ client.js:2
Promise.then (async)
o.handleImageUpload @ client.js:2
(anonymous) @ client.js:2

Error attempting to upload image in post by clicking "upload image" Mozilla

XHRPOST
https://lemmy.world/pictrs/image
[HTTP/2 403 Forbidden 26ms]

pictrs upload: client.js:2:1731897
Object { state: "failed", msg: SyntaxError }
client.js:2:1731927
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data client.js:2:1732538
    e https://lemmy.world/static/fd8d452/js/client.js:2
    p https://lemmy.world/static/fd8d452/js/client.js:2
    C https://lemmy.world/static/fd8d452/js/client.js:2
    w https://lemmy.world/static/fd8d452/js/client.js:2
    e https://lemmy.world/static/fd8d452/js/client.js:2
    s https://lemmy.world/static/fd8d452/js/client.js:2
    (Async: promise callback)
    e https://lemmy.world/static/fd8d452/js/client.js:2
    s https://lemmy.world/static/fd8d452/js/client.js:2
    t https://lemmy.world/static/fd8d452/js/client.js:2
    t https://lemmy.world/static/fd8d452/js/client.js:2
    uploadSingleImage https://lemmy.world/static/fd8d452/js/client.js:2
    e https://lemmy.world/static/fd8d452/js/client.js:2
    p https://lemmy.world/static/fd8d452/js/client.js:2
    C https://lemmy.world/static/fd8d452/js/client.js:2
    w https://lemmy.world/static/fd8d452/js/client.js:2
    e https://lemmy.world/static/fd8d452/js/client.js:2
    s https://lemmy.world/static/fd8d452/js/client.js:2
    t https://lemmy.world/static/fd8d452/js/client.js:2
    t https://lemmy.world/static/fd8d452/js/client.js:2
    e https://lemmy.world/static/fd8d452/js/client.js:2
    e https://lemmy.world/static/fd8d452/js/client.js:2
    p https://lemmy.world/static/fd8d452/js/client.js:2
    C https://lemmy.world/static/fd8d452/js/client.js:2
    w https://lemmy.world/static/fd8d452/js/client.js:2
    e https://lemmy.world/static/fd8d452/js/client.js:2
    s https://lemmy.world/static/fd8d452/js/client.js:2
    t https://lemmy.world/static/fd8d452/js/client.js:2
    t https://lemmy.world/static/fd8d452/js/client.js:2
    uploadImages https://lemmy.world/static/fd8d452/js/client.js:2
    handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
    n https://lemmy.world/static/fd8d452/js/client.js:2
DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property. client.js:2:509245

Chromium

client.js:2     POST https://lemmy.world/pictrs/image 403
(anonymous) @ client.js:2
x @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
u @ client.js:2
uploadImage @ client.js:2
(anonymous) @ client.js:2
p @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
e @ client.js:2
s @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
Np @ client.js:2
(anonymous) @ client.js:2
client.js:2 pictrs upload:
client.js:2 {state: 'failed', msg: SyntaxError: Unexpected token '<', ")}
client.js:2 SyntaxError: Unexpected token '<', ")
(anonymous) @ client.js:2
Promise.then (async)
Np @ client.js:2
(anonymous) @ client.js:2
client.js:2 DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.
buildToast @ client.js:2
showToast @ client.js:2
Xe @ client.js:2
(anonymous) @ client.js:2
Promise.then (async)
Np @ client.js:2
(anonymous) @ client.js:2

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 7 points 1 year ago (1 children)

Picture uploads are currently disabled since there was a recent attack of some A-holes uploading tons of illegal content. It is not a technical issue, and it is not permanent, but we will still have to wait a bit before the admins can safely enable picture uploads again.

You can still link pictures hosted on other sites, but not directly upload anything to lemmy.world ATM (banners, avatars etc.)

[โ€“] [email protected] 3 points 1 year ago

Gotcha, so I am unable to change profile picture for the time being. If uploading is blocked for long period, I hope they at least allow linking avatar pictures