Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Can't post images, says "SyntaxError: Unexpected token '<', "

⁨26⁩ ⁨likes⁩

Submitted ⁨⁨1⁩ ⁨year⁩ ago⁩ by ⁨PugJesus@lemmy.world⁩ to ⁨support@lemmy.world⁩

source

Comments

Sort:hotnewtop
  • TheYear2525@lemmy.world ⁨1⁩ ⁨year⁩ ago

    That’s almost always from an endpoint expecting a JSON response but getting back the HTML of a 404 page. Fun!

    source
    • PugJesus@lemmy.world ⁨1⁩ ⁨year⁩ ago

      Don’t suppose there’s anything to be done on my end to get around it?

      source
      • TheYear2525@lemmy.world ⁨1⁩ ⁨year⁩ ago

        Nope

        source
        • -> View More Comments
  • quinten@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Going to be a update around the image upload situation soon. I expect it tomorrow.

    source
    • FauxPseudo@lemmy.world ⁨1⁩ ⁨year⁩ ago

      I’m still not having any luck. Any update?

      source
  • Darkassassin07@lemmy.ca ⁨1⁩ ⁨year⁩ ago

    Some instances are disabling image uploads temporarily until they can deal with the trash that’s uploading CSAM.

    Not certain if lemmy.world is one of them.

    Upload to imgur, copy the image link and post that (the link ending in .jpg/.webp, not the plain imgur link) for the time being.

    source
    • The_Picard_Maneuver@lemmy.world ⁨1⁩ ⁨year⁩ ago

      I tried to do this earlier and I think I messed up, because it was directing off site instead of viewable in Lemmy. Does that mean I likely pasted the link instead of the image?

      source
      • Darkassassin07@lemmy.ca ⁨1⁩ ⁨year⁩ ago

        When you finish uploading you’re brought to a full webpage with the image embedded in it like this:

        imgur.com/a/SzSKW5M

        You want to right-click on the image and select ‘open image in new tab’ which gives you this:

        i.imgur.com/GFTwYm3.jpg

        (if you’re on mobile first select ‘desktop site’ from the browsers options or you’ll get a low quality .webp version from the open image button. It’ll work, but many ppl hate it)

        Finally format it like this to embed it in a post/comment:

        ![](i.imgur.com/GFTwYm3.jpg)

        (I added backslashes to the front of that to prevent it embedding the link as an image and show you the formatting instead)

        source
        • -> View More Comments
  • The_Picard_Maneuver@lemmy.world ⁨1⁩ ⁨year⁩ ago

    I’ve been unable to post images since last night as well. Just hopped on my PC to see what the error message was, and it’s the same as @tsuica shared:

    JSON.parse: unexpected character at line 1 column 1 of the JSON data

    Switched to alt accounts on different instances and had zero issues.

    source
  • Moc@lemmy.world ⁨1⁩ ⁨year⁩ ago

    I have the issue, and it seems to be a HTTP 403 (Forbidden) from CloudFlare.

    source
  • FauxPseudo@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Can confirm. Same error on two different apps and the lemmy world website.

    source
  • tsuica@lemmy.world ⁨1⁩ ⁨year⁩ ago

    I can confirm this is the case. Can’t upload images to Lemmy.world, getting the same error.

    SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    source
  • Squander@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Bump

    source
  • Mystech@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Any update on this bug? The imgur hack is fine for image-only posts, but kind of dead in the water for image + url posting.

    source
  • Mystech@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Same here. Started sporadically for me starting yesterday. At some point today it became 100% regardless of cache, platform or browser.

    source
  • Squander@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Came here to ask the same question. +1

    source
  • LeftRedditOnJul1@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Yes, me as well

    source
  • ekZepp@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Is good to have multiple accounts, you can also do a backup of your posts an migrate on a different istances.

    Here is some useful information for people wanting to move instances. For a list of instances, along with with stats for those instances:

    fedidb.org/software/lemmy or lemmyverse.net

    Also, tools for migrating instances:

    github.com/CMahaff/lasim (easy) - Latest Version Download (just select your OS type and run the program)

    github.com/wescode/lemmy_migrate

    github.com/Ac5000/lemmy_account_sync

    All credits to @Fish@midwest.social x the info

    source
  • ChamelAjvalel@lemmy.world ⁨1⁩ ⁨year⁩ ago

    Noticed that about a couple of hours ago…

    Also, within Connect for Lemmy, I get

    FormatException: Unexpected Character (at character 1)

    On Jerboa, I got a whole page of html code, but it vanished too fast for me to be able to remember anything. Also, it has a continual loading icon over the “upload image” icon.

    source