Autofurnishing.furnish 方法 400 错误请求
Autofurnishing.furnish method 400 bad request
我正在尝试 运行 examples-browser/staging/stage-scene-structure 在本地服务器中,我创建了 publishableApiKey 和在 io3d.config
中添加了它。选择区域控制台时显示以下错误
HomeStaging error: You are not authorized to access this method.
Please use your API key to use this method or get a free API key at
3d.io
如何解决这个问题?
注意:我使用的是免费配额
谢谢
得知您遇到问题,我们深表遗憾。首先想到的是与您的可发布 API 密钥关联的允许域不正确。
设置域时,您必须不带引号进行设置,即仅以空格分隔的域:
localhost *.3d.io mypage.com
虽然库不会忽略 leading/trailing 引号,但目前的解决方案是使用正确的域列表生成一个新的 API 密钥。
在本地运行应用程序,您只需按照安装指南here
git clone https://github.com/archilogic-com/3dio-js.git ; cd ./3dio-js
npm install rollup -g ; npm install lite-server -g
npm install
现在您可以编辑 index.html 文件,将可发布的 API 密钥添加到配置中。然后你可以回到终端并启动服务器:
npm start
这将在浏览器中自动打开示例:
您可以在其中点击进入您想要测试的示例:
我正在尝试 运行 examples-browser/staging/stage-scene-structure 在本地服务器中,我创建了 publishableApiKey 和在 io3d.config
中添加了它。选择区域控制台时显示以下错误
HomeStaging error: You are not authorized to access this method. Please use your API key to use this method or get a free API key at 3d.io
如何解决这个问题?
注意:我使用的是免费配额
谢谢
得知您遇到问题,我们深表遗憾。首先想到的是与您的可发布 API 密钥关联的允许域不正确。
设置域时,您必须不带引号进行设置,即仅以空格分隔的域:
localhost *.3d.io mypage.com
虽然库不会忽略 leading/trailing 引号,但目前的解决方案是使用正确的域列表生成一个新的 API 密钥。
在本地运行应用程序,您只需按照安装指南here
git clone https://github.com/archilogic-com/3dio-js.git ; cd ./3dio-js
npm install rollup -g ; npm install lite-server -g
npm install
现在您可以编辑 index.html 文件,将可发布的 API 密钥添加到配置中。然后你可以回到终端并启动服务器:
npm start
这将在浏览器中自动打开示例:
您可以在其中点击进入您想要测试的示例: