this post was submitted on 01 Sep 2023
1 points (100.0% liked)

Lemmy.world Support

0 readers
1 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.

Support tickets can be created by sending an email to info@mastodon.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

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here