Title: Weird failed request
Last modified: May 20, 2021

---

# Weird failed request

 *  [Konstantinos Galanakis](https://wordpress.org/support/users/kmgalanakis/)
 * (@kmgalanakis)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/weird-failed-request/)
 * Hello. Below there is a simplified version of the concept I’m trying to make 
   work.
 * In a post, I’m manually inserting this core Image block:
 *     ```
       <!-- wp:image {"id":7} -->
       <figure class="wp-block-image"><img src="[picsum]" alt="ASD" class="wp-image-7"/></figure>
       <!-- /wp:image -->
       ```
   
 * As you see, there is shortcode for the src attribute of the image, so here is
   the shortcode callback.
 *     ```
       add_shortcode( 'picsum', 'picsum_func' );
       function picsum_func( $atts ) {
       	return "https://picsum.photos/id/237/200/300";
       }
       ```
   
 * Simple, right?
 * When I open this post on the frontend it renders the image properly. Also, when
   I open the post on the editor, it renders no image for the image block, but the
   block is surely there.
 * What is weird, is that in my console log there is this error
 * `GET http://example.local/wp-admin/[picsum] 404 (Not Found)`, which I cannot 
   debug because the stack trace is not helpful, at least not to me. This happens
   with both the latest WP and the editor that it carries and with the latest version
   from the GB repo.
 * Can you help me identify what the problem is and how can I prevent this? Where
   is this request coming from?
    -  This topic was modified 4 years, 10 months ago by [Konstantinos Galanakis](https://wordpress.org/support/users/kmgalanakis/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * (@a2hostingrj)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/weird-failed-request/#post-14460454)
 * > When I open this post on the frontend it renders the image properly. Also, 
   > when I open the post on the editor, it renders no image for the image block,
   > but the block is surely there.
 * So, the problem is only in the Editor, right?
 *  Thread Starter [Konstantinos Galanakis](https://wordpress.org/support/users/kmgalanakis/)
 * (@kmgalanakis)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/weird-failed-request/#post-14460919)
 * [@a2hostingrj](https://wordpress.org/support/users/a2hostingrj/) exactly, this
   console error appears only when loading the post on the editor.
 *  [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * (@a2hostingrj)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/weird-failed-request/#post-14465170)
 * It might be the short code, it is hard to tell without properly debugging or 
   checking the error log

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Weird failed request’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/weird-failed-request/#post-14465170)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
