webarkit / ARnft

A small javascript library for WebAR with NFT
GNU Lesser General Public License v3.0
219 stars 53 forks source link

Error: Request failed with status code 404 on github #279

Closed gmgm4321 closed 1 year ago

gmgm4321 commented 2 years ago

I uploaded the sample to github for testing... get these error codes... d9f4ce96-4874-490a-a222-250b7069b2df:1 Error: Request failed with status code 404 at A.exports (d9f4ce96-4874-490a-a222-250b7069b2df:1:6231) at A.exports (d9f4ce96-4874-490a-a222-250b7069b2df:1:8635) at XMLHttpRequest.S (d9f4ce96-4874-490a-a222-250b7069b2df:1:925)

I see https://github.com/webarkit/ARnft/issues/168 But I still don't know how to solve it... This is my websit https://gmgm4321.github.io/ARnft/examples/arNFT_video_example.html

kalwalt commented 2 years ago

Hi @gmgm4321 because you are using gh-pages the server doesn't take in account the ARnft part of your resources. It fails loading the camera_para.dat see the request url from the network tab: Request URL: https://gmgm4321.github.io/examples/Data/camera_para.dat it should be instead: https://gmgm4321.github.io/ARnft/examples/Data/camera_para.dat to overpass this try to add in the config.json in the addPath entry: 'ARnft'.

gmgm4321 commented 2 years ago

Hi @gmgm4321 because you are using gh-pages the server doesn't take in account the ARnft part of your resources. It fails loading the camera_para.dat see the request url from the network tab: Request URL: https://gmgm4321.github.io/examples/Data/camera_para.dat it should be instead: https://gmgm4321.github.io/ARnft/examples/Data/camera_para.dat to overpass this try to add in the config.json in the addPath entry: 'ARnft'.

Thanks!!I fix it!!

kalwalt commented 2 years ago

@gmgm4321 Perfect! I think i should add some docs about this, i hope doing this one day...