Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

尝试获取 version 返回BadGatewayError错误 #21

Open
franksonet opened this issue Mar 6, 2020 · 1 comment
Open

尝试获取 version 返回BadGatewayError错误 #21

franksonet opened this issue Mar 6, 2020 · 1 comment

Comments

@franksonet
Copy link

通过tws.get('/version')获取版本信息,返回如下错误:

BadGatewayError: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
```
@tolerious
Copy link

请注意host的填写是否正确、 文档的地址写错了。

var client = new Client({
    appId: teambitionConfig.appId,
    appSecrets: [teambitionConfig.appSecrets],
    host: "https://open.teambition.com/api",
  });
  console.log(client.signAppToken());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants