iotivity - Iotivity云服务器故障
问题描述
我很难运行“aircon_controlee”应用程序。我从 github 获得了一个身份验证代码,我正在尝试执行“aircon_controlee”,但它正在工作。
验证码 URL 是 ' https://github.com/login?return_to=%2Flogin%2Foauth%2Fauthorize%3Fclient_id%3D5cc655ef49c97302664e ' 并且执行命令是 './aircon_controlee 127.0.0.1:5683 github 8f7174caa697d7914312' (在同一个网络中)。输出错误如下。
验证响应收到代码:134
在抛出 'OC::OCException' 的实例后调用终止
what(): result_guard(): 26: 无效参数
中止(核心转储)
我猜这个错误是由'Account Server'引起的,因为只有这个过程会打印错误日志(请参考blow)。
2019-02-20 21:08:43:214 [D] authCode: 8f7174caa697d7914312
2019-02-20 21:08:43:214 [W] OAuth 3rd 方库 github 不存在。
OAuthProblemException{error='bad_verification_code', description='传递的代码不正确或过期。', uri=' https://developer.github.com/apps/managing-oauth-apps/troubleshooting-oauth-app-access- token-request-errors/#bad-verification-code ', state='null', scope='null', redirectUri='null', responseStatus=0, parameters={}}
解决方案
我想你没有Gitlab.jar
礼物。account server .jar
请从此处将其复制到您的旁边https://github.com/iotivity/iotivity/tree/master/cloud/account
推荐阅读
- java - 使用 @Component 强制使用 @Autowired 使用
- excel - 在表格中逐行“直到”直到在VBA中找到第一个彩色单元格?
- unit-testing - 如何在集成测试中模拟 BLoC
- activerecord - 如何在 `around_destroy` 回调中处理 Active Record `destroy` 的结果
- javascript - 中断数据流并断开设备
- php - ajax请求后取消url重定向
- scala - 无法解析 Intellij 中的 Ammonite 主要方法
- node.js - 使用 octokit 添加用户作为 github 组织的协作者以 404 结束
- java - 如何使用 jsoup 获取/检测空字段?
- apache - Authorization_code 授权重定向问题