# Asset canister giving 404 for HTTP requests even if file exists

**URL:** <https://forum.dfinity.org/t/asset-canister-giving-404-for-http-requests-even-if-file-exists/30426>\
**Category:** Developers\
**Created:** [May 7, 2024, 9:22am UTC](https://forum.dfinity.org/t/asset-canister-giving-404-for-http-requests-even-if-file-exists/30426 "2024-05-07T09:22:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudoshreyansh](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sudoshreyansh](https://forum.dfinity.org/u/sudoshreyansh)\
**Post date:** [May 7, 2024, 9:22am UTC](https://forum.dfinity.org/t/asset-canister-giving-404-for-http-requests-even-if-file-exists/30426/1 "2024-05-07T09:22:06Z")

</div>

Hi, I have an asset canister hosted: [ICP Dashboard](https://dashboard.internetcomputer.org/canister/t4l5p-laaaa-aaaam-aclba-cai) where I uploaded an image successfully using @dfinity/assets package (image name: test.jpg, encoding: br, identity). I am able to view the image through the `list` and the `get` methods and even the `http_request` method.  
But when I try viewing it through the HTTP URL: [https://t4l5p-laaaa-aaaam-aclba-cai.ic0.app/test.jpg](https://t4l5p-laaaa-aaaam-aclba-cai.ic0.app/test.jpg), it gives a 404 error.

---

<div class="post-metadata">

**Author:** ![rbirkner](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rbirkner](https://forum.dfinity.org/u/rbirkner)\
**Post date:** [May 7, 2024, 9:32am UTC](https://forum.dfinity.org/t/asset-canister-giving-404-for-http-requests-even-if-file-exists/30426/2 "2024-05-07T09:32:05Z")

</div>

Hey @sudoshreyansh

It is just the domain: canisters that have been created after April of last year are only accessible over [icp0.io](http://icp0.io): [https://t4l5p-laaaa-aaaam-aclba-cai.icp0.io/test.jpg](https://t4l5p-laaaa-aaaam-aclba-cai.icp0.io/test.jpg)

When I use that domain, it works:

```auto
$ curl https://t4l5p-laaaa-aaaam-aclba-cai.icp0.io/test.jpg --output test.jpg
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 109k 100 109k 0 0 505k 0 --:--:-- --:--:-- --:--:-- 507k

```

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [May 7, 2024, 12:23pm UTC](https://forum.dfinity.org/t/asset-canister-giving-404-for-http-requests-even-if-file-exists/30426/3 "2024-05-07T12:23:28Z")

</div>

> [@\[FOLLOW UP ON ITEM\] New canisters will only be accessible through the icp0.io domain. Existing canisters will be accessible both through ic0.app and icp0.io](https://forum.dfinity.org/t/follow-up-on-item-new-canisters-will-only-be-accessible-through-the-icp0-io-domain-existing-canisters-will-be-accessible-both-through-ic0-app-and-icp0-io/18889):
>
> Update: TLDR: As of March 20, 2023 April 20, 2023, new canisters will only be accessible through the [icp0.io](http://icp0.io) domain. Existing canisters will be accessible both through ic0.app and icp0.io. 1. Summary In February 2023, Spamhaus temporarily added ic0.app to a blocklist. As a result, an extensive mitigation plan was put in place and [communicated to the IC community](https://forum.dfinity.org/t/important-community-update-on-ic0-app-domain-being-flagged-by-an-anti-spam-blocklist/18537). While the need for a new default domain is less pressing now that ic0.app is no longer on a blocklist, good reasons remain to intro…
