403 paste error

Hello !

Everytime I past a copy of this notion-type page with images

I get the 403 error. Is is a constant.

I have followed all the toubleshootings steps in the anki manual , deleted all my add ons, checked media, database, empty cards, updated my anki version to
Version ⁨24.06.3 (d678e393)⁩
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

on my windows 10.

The error persists and I don’t know what to do. please help

  • What exactly are you pasting? Is it a file – text – text and images – text that includes links to the images? It matters what is in your copy-buffer when you paste. You might be able to check this by pasting it somewhere else, like in a Word or Google Doc.
  • Where are you pasting it in Anki?
  • What is the text of the error, and where/when is it being displayed?

I also get this error when copy-pasting images generated from chatgpt

1 Like

Same questions to you then!

Copying:
image

Pasting:

After clicking the dialog:

image

What I expected:
image

Some images work, some others rise the 403 error and Anki makes a link that later breaks

Yeah, you can see the problem right there – because of the way that website is displaying the image, what you have in your copy buffer isn’t really the image file. It’s a url and a bunch of gobbledygook that eventually gets around (maybe?) to a webp file somewhere in the middle – but who even knows if that’s actually the filename.
image

Things to try:

  • Click “Open image in new tab” first, then copy the image from there. [That might not work, but you’ll be able to see the url at least to see if the site resolves it to something more reasonable.]
  • Click “Save image as…” first, download the image to your computer, and then attach it to Anki.

Saving to the desktop first will likely avoid the error. The error is likely coming from a HTML link in the clipboard, which Chrome seems to be “helpfully” adding when you requested the image and not the address? When Anki tries to access it, the site in question is refusing to provide the image.

1 Like

Not an ideal solution as this creates an extra step. I usually don’t need the image outside of Anki so I’d need to delete the image right after

Your other options are –

  • Don’t download images from sites that have this issue or in browsers that have this issue.
  • Save the images to an easy to access “Empty Every Day” folder and delete the contents of it regularly.
  • Save the image directly to your collection.media folder – being careful to follow the file-naming rules and running Check Media regularly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.