Cannot load any images “Uncaught (in promise) no-response: no-response”

AI-generated summary

Users are experiencing issues loading images and emojis in a local Discourse installation, encountering the error “Uncaught (in promise) no-response” in the console. Alex_王 reports this occurs on Windows using WSL with Ubuntu 22.04.2 LTS, noting the Discourse logo and other images initially loaded but later failed. nat asks if the installation followed the standard guide or is a local/dev setup. Moin links to a similar reported issue, while pfaffman notes that S3 storage can be configured per documentation, though it’s challenging for development. Alex_王 confirms using the standard install on Ubuntu 22.04 via WSL, questioning if the OS version is the cause. darkpixlz confirms the same issue on 22.04 WSL. wayway_way suggests that if using the Docker dev install guide, running d/rails s and d/ember-cli in separate terminals after restarting the VM may resolve the issue. The consensus implies the problem is likely tied to local/dev setup nuances, particularly on newer Ubuntu versions in WSL, and may require manual server restarts or configuration adjustments.

It seems that all images in the website cannot load correctly. The images url in console is not responding.

error message: “NetworkFirst.js:120 Uncaught (in promise) no-response: no-response :: [{“url”:“http://127.0.0.1:4200/uploads/default/original/1X/d5bf693dd40d319b3ee59f6d36a65adce12a8c31.png”}]
at w._handle (http://localhost:4200/assets/workbox-84721eb2561c34fa8575f276d429c215/workbox-strategies.prod.js:1:5420)”

Please help me thanks!

By the way, what is the storage way of discourse? How can it use the S3 storage? I figured it is using local storage in this case.

Thank you very much!!! :grinning:

Hey Alex, welcome. Thanks for trying out Discourse.

These errors look a bit weird. Did you deploy them using our standard installation guide? discourse/docs/INSTALL.md at main · discourse/discourse · GitHub

Or are you running this locally?

I run it on local

In fact, when I installed it, I realized that it couldn’t display the the logo of discourse. But at first the other pictures were temporarily displayed, but later on they were not.

:smiling_face_with_tear:And I cannot load the emoji

The problem with the emojis and the logo waa reported here too Install Discourse on Ubuntu or Debian for Development - #607

Hi Alex,

As nat asked, is that a standard install or something else like a development install?

There are a bunch of things that can go wrong on a development installation.

You can use S3 as described at Configure an S3 compatible object storage provider for uploads. It’s likely very difficult to configure for development.

I install it on windows using WSL, following the stardard installation and I noticed that I use Ubuntu 22.04.2 LTS not ubuntu 18. Is it the possible reason?

I’m having the same issue on 22.04 on WSL.

If you installed according to the following link

I guess you can execute the following command in the project root directory every time you reopen the virtual machine:

# In one terminal:
d/rails s

# And in a separate terminal
d/ember-cli