Skip to content

Trouble Shooting

matrixbirds edited this page May 12, 2020 · 15 revisions

其他语言版本:简体中文

Security

  1. 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 a uid to dynamically generate a token. For more information about how to generate an RTM Token, see Token Security.
  2. 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

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": ""

    }
}

Web & Electron

1. Fail to run the Electron demo

Take these steps to find the root cause:

  1. Check whether localhost:3000 is occupied.
  2. Check whether you have successfully installed Electron. Delete node_modules/electron, set up the variables of installment, and run npm i electron.

2. Package the Electron demo on Windows

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.

3. window.__netlessJavaScriptLoader was override error

Take these steps to find the root cause:

  1. Run npm list | grep 'white-web-sdk' to check how many whiteboard sdks that you have installed.
  2. Find the latest version of white-web-sdk in node_modules, and remove other versions.

4. Use other tools than npm

If you do not use yarn or cnpm to install, remove node_modules, yarn.lock, package-lock.json.

5. agora_node_ext.node is not a valid Win32 application error

Take these steps to fix this error:

  1. Remove node_modules/electron
  2. npm install [email protected] --platform=win32 --arch=ia32
  3. Add the following code snippet in package.json and run npm i agora-electron-sdk to re-install.
"agora_electron": {
  "electron_version": "7.1.2",
  "prebuilt": true,
  "platform": "win32"
},