404 error in Universal AR on Zap Works hosting


#1

Hi, I made a web AR using a-frame and universal AR (version 0.2.3 CDN).
Local test is very good, but hosting on Zap Works test is wrong by 404 error.

I saw some topic about this, my problem is also “The specified key does not exist.”.

How can I recover from this problem?
Has anyone been able to resolve this issue?


#2

The most likely reason for this is not having an index.html in the root of the files you upload. If you use the ZapWorks CLI then that will give you a warning if you are missing this file.

If you upload a zip instead, then make sure there are no unwanted folders in the zip - for example if you select a folder containing your files to compress, it’s possible the zip file will also include that unwanted folder so index.html will not be at the root.

We’ll add some tasks to make some improvements here - we should be able to detect the “unwanted folder” case and cope with that automatically, and we can also add better warnings if you upload a zip without the index.html in the right place.


#3

Thanks Simon.

The reason it didn’t work, as you said, because there was no index.html in the root.
It is working correctly now!

Your Universal AR is very GOOD!


#4

Glad it helped, and glad you’re enjoying Universal AR! :blush: