简体   繁体   English

forge-bim360-data.connector.dashboard 的 400-未知或无效的 client_id

[英]400-unknown or invalid client_id for forge-bim360-data.connector.dashboard

I have tried to implement - https://github.com/Autodesk-Forge/forge-bim360-data.connector.dashboard我试图实施 - https://github.com/Autodesk-Forge/forge-bim360-data.connector.dashboard
I have updated this part - npm install set FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>> set FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>> set FORGE_CALLBACK_URL=<<your callback url of Forge eg http://localhost:3000/oauth/callback>> set DC_CALLBACK_URL=<<"your ngrok address here: eg http://abcd1234.ngrok.io/job/callback">>我已经更新了这部分 - npm install set FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>> set FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>> set FORGE_CALLBACK_URL=<<your callback url of Forge eg http://localhost:3000/oauth/callback>> set DC_CALLBACK_URL=<<"your ngrok address here: eg http://abcd1234.ngrok.io/job/callback">>

I am getting the error that 400-Unknown or invalid client_id我收到错误400-Unknown or invalid client_id

Firstly, I rarely used Windows OS now.首先,我现在很少使用 Windows 操作系统。 I simply copied the guideline of setting environment variables from other samples, while most time, I tried with debug mode (setting environment variables in launch.json).我只是简单地从其他示例中复制了设置环境变量的指南,而大多数时候,我尝试使用调试模式(在 launch.json 中设置环境变量)。

checking the Readme again, I found the wording is:再次查看Readme,发现写法是:

   Windows (use Node.js command line from Start menu)

ie it asks to input those commands to command line of Node.js, instead of terminal of VSCode.即它要求将这些命令输入到 Node.js 的命令行,而不是 VSCode 的终端。 That is why it always reports the error of client id is not defined because the variables are not set to environment at all.这就是为什么它总是报告 client id is not defined 的错误,因为变量根本没有设置为环境。

The correct way is to open the command line of Node.js, and run the commands.正确的做法是打开Node.js的命令行,运行命令。 This is a screenshot.这是截图。 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM