question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@editorjs/image, "Can't upload image. Please try another." Error 404

See original GitHub issue

Environment

installed today (2/26/2021)

Describe

npm commands… npm i react-editor-js @editorjs/image

import Image from "@editorjs/image";
function App () {
  const EDITOR_JS_TOOLS = {
    image: Image,
  };
  return ( <EditorJs tools={EDITOR_JS_TOOLS} /> )
}

At first glance, the program works precisely how I wanted it to. But when I went to insert an image, after a moment of almost working and I can see the image, I got an error bubble on the bottom-left that reads, “Couldn’t upload image. Please try another.” In the console, “POST HTTP://localhost:3000/ 404 (Not Found)” and, “Image Tool: uploading failed because of” and a body object. See the attached screenshot for as much detail I can find. 404 image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ifthakharriyadcommented, Mar 22, 2021

Oh! Do I have to! I didn’t modify the code from the codesandbox. I will try to set the uploader option of the image plugin and see if it will work or not.

1reaction
Jungwoo-Ancommented, Mar 22, 2021

Thanks! Did you set uploader option of image plugin? (Rel)

Read more comments on GitHub >

github_iconTop Results From Across the Web

editorjs image plugin return image url is not picked up
I installed image plugin on it so that I can upload an image to the server. ... The response has file->url but still...
Read more >
@editorjs/image - npm
Image Tool. Image Block for the Editor.js. Features. Uploading file from the device; Pasting copied content from the web; Pasting images by ...
Read more >
Image & file options | Docs - TinyMCE
When this option is not set, TinyMCE utilizes an XMLHttpRequest to upload images one at a time to the server and calls the...
Read more >
CKEditor dow not work properly if editor.js loaded indirectly
Just change editor.js to second (indirect) way and CKEditor do not loaded ... GET ​http://localsport.rus/images/sprites.png [HTTP/1.1 404 Not Found 16мс] ...
Read more >
codex-team/editor.js - Gitter
I have a question about images on editor.js ... know how I can manage the error in case of there would be an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found