-
Notifications
You must be signed in to change notification settings - Fork 124
Trouble Shooting
matrixbirds edited this page May 12, 2020
·
15 revisions
其他语言版本:简体中文
- In this sample project, we use Basic HTTP Authentication, which will generate the
Authorization
parameter. If you need a more secure way, you can use Token Authentication and pass in auid
to dynamically generate a token. For more information about how to generate an RTM Token, see Token Security. - If you are worried about the security of the whiteboard sdkToken, you can deploy your own Token generation service.
You should store the
sdkToken
on your server, and see the following documents to deploy a service for generating the token of a whiteboard room.
References
- JS: Room Authentication
- Android: Create Room
- iOS:Create Room
Example
Request GET {{tokenServiceUrl}}?channelName={channelName}
Request parameter | Type | Description |
---|---|---|
channelName |
String | The channel name |
Response
Content-Type: application/json;charset=UTF-8
{
"msg": "Success",
"code": 0,
"data": {
"boardId": "",
"boardToken": ""
}
}
Take these steps to find the root cause:
- Check whether
localhost:3000
is occupied. - Check whether you have successfully installed Electron. Delete
node_modules/electron
, set up the variables of installment, and runnpm i electron
.
When packaging the Electron demo on Windows, please check whether the version of agora-electron-sdk that you installed is consistent with the version of Electron.
Take these steps to find the root cause:
- Run
npm list | grep 'white-web-sdk'
to check how many whiteboard sdks that you have installed. - Find the latest version of
white-web-sdk
innode_modules
, and remove other versions.
If you do not use yarn or cnpm to install, remove node_modules
, yarn.lock
, package-lock.json
.
Take these steps to fix this error:
- Remove
node_modules/electron
npm install [email protected] --platform=win32 --arch=ia32
- Add the following code snippet in
package.json
and runnpm i agora-electron-sdk
to re-install.
"agora_electron": {
"electron_version": "7.1.2",
"prebuilt": true,
"platform": "win32"
},