Hi, I have an asset canister hosted: ICP Dashboard 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, it gives a 404 error.
Hey @sudoshreyansh
It is just the domain: canisters that have been created after April of last year are only accessible over icp0.io: https://t4l5p-laaaa-aaaam-aclba-cai.icp0.io/test.jpg
When I use that domain, it works:
$ 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