# 404-error for .json type assets

**URL:** <https://forum.ghost.org/t/404-error-for-json-type-assets/55572>\
**Category:** Bugs\
**Created:** [February 24, 2025, 2:12pm UTC](https://forum.ghost.org/t/404-error-for-json-type-assets/55572 "2025-02-24T14:12:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian\_Hessel](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/julian_hessel/32/35032_2.png) [@Julian\_Hessel](https://forum.ghost.org/u/Julian_Hessel)\
**Post date:** [February 24, 2025, 2:12pm UTC](https://forum.ghost.org/t/404-error-for-json-type-assets/55572/1 "2025-02-24T14:12:45Z")

</div>

**Issue Summary**

- Explain roughly what’s wrong  
I have two local installations of my Ghost site, one on a Macbook and another on my Windows PC. On the Mac everything seems to work fine with loading .json file as an asset within the theme folder (assets/json/file.json). The JSON file is correctly loaded and used in the live production version of my site as well.

It seems that on a local install on Windows, the theme doesn’t seem to be able to access .json files which i have stored in the assets/json/ folder. Other filetypes such as .txt, .js etc are loading correctly and can be accessed within the browser as [http://localhost:2368/assets/test.txt](http://localhost:2368/assets/test.txt)

The same bug seems to have been resolved in this forum post below but now it seems to be back:

> [@Json asset file goes to 404](https://forum.ghost.org/t/json-asset-file-goes-to-404/30087):
>
> I’m trying to access a json asset file that I added to /assets/js/test.json When I go to [http://localhost:2370/assets/js/test.json](http://localhost:2370/assets/js/test.json) it brings me to a 404 page. I’m trying to load this file using a js script, but I’m getting this in the console: GET [http://localhost:2370/assets/js/test.json/](http://localhost:2370/assets/js/test.json/) 404 (Not Found) When I try to go to [http://localhost:2370/assets/js/main.js](http://localhost:2370/assets/js/main.js) it loads the js file as expected. So my question is, how can I make sure ghost recognizes json files? Or what is causing this? …

I’ve tried putting the .json file in themename/files/file.json, but it doesn’t seem to resolve this issue this time.

- What did you expect to happen?  
I expect the same behaviour as on Mac, so that I can keep developing my theme no matter which device I use.

## Setup information

**Ghost Version**  
_Share which version of Ghost you’re using._  
On Mac i had initially Ghost-CLI 1.26.0 and Ghost 5.87.1, I have updated it to the latest versions (CLI 1.27.0 and Ghost 5.110.1) and verified that it still works correctly there.  
On Windows i have both tried the CLI version 1.26 and 1.27 and Ghost Versions 5.87.1 and 5.110.1 but none of these seem to work for this bug.

**Node.js Version**  
_If self-hosting - share which version of Node.js you’re using._  
Tried Node v20 and v18.

**How did you install Ghost?**  
_Provide some details about your install of Ghost if you are self-hosting._  
Installed through npm

**Provide details of your host & operating system**  
_Include further details about your hosting and OS._  
Mac M1 Max on Sequoia 15.1.1  
Windows 11 Version 10.0.26100 Build 26100

**Browser & OS version**  
_Include if reporting frontend bugs._  
Tested in Brave and Edge with same error on Windows.  
Tested in Brave and Safari with success on Mac

**Relevant log / error output**  
`Copy and paste any relevant log output. Use backticks to format this into code.`  
GET [http://localhost:2368/assets/json/nr\_array.json/?v=bb207aabe8](http://localhost:2368/assets/json/nr_array.json/?v=bb207aabe8) 404 (Not Found)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [February 24, 2025, 2:34pm UTC](https://forum.ghost.org/t/404-error-for-json-type-assets/55572/2 "2025-02-24T14:34:47Z")

</div>

Hey Julian, and welcome to Ghost!

That post is pretty old, but I don’t think you’ve understood the workaround - the recommendation is to put it in yourghostfolder/content/files. It sounds like you’re using yourghostfolder/content/themes/yourtheme/files . But I’m not sure that’ll work – that post is pretty ancient. :)

Now, on to the bug:  
As I understand it, the core team doesn’t work on Windows. They’re on Macs. And of course, Ghost in production is running on Linux. That means that sometimes bugs that are affecting only Windows users developing locally take a while to find and squash. [It’s hard to squash a bug if your dev setup doesn’t show the bug.]

My 100% best advice for developing on Windows is to use WSL2/Ubuntu. If you’re not familiar with WSL, that gets you a virtual machine running Ubuntu, while your computer is still booted in Windows. (It’s not a dual-boot setup. It’s containerization.) It’s absolutely awesome, MUCH easier to work with, and it means you’re running Linux, just like the dev team, and googling “how do I do…” almost anything code-related is much more likely to just work. Far fewer bugs, subtle incompatibilities, problems with path, etc etc. I do all my work on a Windows laptop with Ghost (and everything else dev-related) running in an Ubuntu container, and it works great. I just checked and that bug is not present for me with WSL.

---

<div class="post-metadata">

**Author:** ![Julian\_Hessel](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/julian_hessel/32/35032_2.png) [@Julian\_Hessel](https://forum.ghost.org/u/Julian_Hessel)\
**Post date:** [February 24, 2025, 2:59pm UTC](https://forum.ghost.org/t/404-error-for-json-type-assets/55572/3 "2025-02-24T14:59:04Z")

</div>

Hey Cathy!  
Thanks for the quick reply. I did fail with the placement of the file, I tried moving it to content/files but the problem persists.  
Thanks for the suggestion to use WSL, I’ll consider it! But for now I guess I’ll just keep developing the .json affected functionality on my Mac 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [May 25, 2025, 2:59pm UTC](https://forum.ghost.org/t/404-error-for-json-type-assets/55572/4 "2025-05-25T14:59:25Z")

</div>

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