首页 > 解决方案 > AFrame - 在 Worker 404 上加载标记时出错

问题描述

我在尝试加载我的 nft 标记时遇到问题,这就是我所做的:

   <!DOCTYPE html>
<html lang="en">
<html>
  <head>
    <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
    <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>
    <body style='margin : 0px; overflow: hidden;'>
      <a-scene embedded arjs="trackingMethod: best; sourceType: webcam;debugUIEnabled: false;">
              
        <a-nft
        type="nft"
        url="nftmarkers/pinball"
        smooth="true"
        smoothCount="10"
        smoothTolerance=".01"
        smoothThreshold="5">
            <a-box position='0 0.5 0' ></a-box>
        </a-nft>
        <a-camera></a-camera>
      </a-scene>
     </body>
</html>

这就是它返回给我的错误:

432abd3a-f330-4cc8-8c03-faa918143656:76 Error in loading marker on Worker 404

标签: htmlwebaframe

解决方案


问题是我的服务器将页面作为结果而不是内容发送。我修复了将网络应用程序发送到 firebase 的问题。


推荐阅读