连接阿里云失败,报的错误码对应的含义是什么?

错误log1:

[2018-09-27 00:47:36.498]: [I]-[ril.proatc]{"code":400,"message":"auth error.invalid sign."}

[2018-09-27 00:47:36.502]: [I]-[aLiYun.authCbFnc]true200{"code":400,"message":"auth error.invalid sign."}



错误log2

[2018-09-27 00:40:14.682]: [I]-[ril.proatc]SSL&6,SEND OK

[2018-09-27 00:40:14.805]: [I]-[ril.proatc]

[2018-09-27 00:40:14.811]: [I]-[ril.proatc]+SSL RECEIVE,6,187:

[2018-09-27 00:40:14.820]: [I]-[ril.proatc]HTTP/1.1 200 OK

[2018-09-27 00:40:14.825]: [I]-[ril.proatc]Server: Tengine

[2018-09-27 00:40:14.831]: [I]-[ril.proatc]Date: Wed, 26 Sep 2018 16:40:16 GMT

[2018-09-27 00:40:14.837]: [I]-[ril.proatc]Content-Type: application/json

[2018-09-27 00:40:14.842]: [I]-[ril.proatc]Content-Length: 38

[2018-09-27 00:40:14.846]: [I]-[ril.proatc]Connection: keep-alive

[2018-09-27 00:40:14.850]: [I]-[ril.proatc]

[2018-09-27 00:40:14.853]: [I]-[ril.proatc]{"code":500,"message":"server error."}

[2018-09-27 00:40:14.857]: [I]-[aLiYun.getDeviceSecretCb]true200

[2018-09-27 00:40:14.861]: [I]-[ril.sendat]AT+SSLDESTROY=6

[2018-09-27 00:40:14.882]: [I]-[ril.proatc]

[2018-09-27 00:40:14.888]: [I]-[ril.proatc]SSL&6,DESTROY OK

[2018-09-27 00:40:14.895]: [I]-[ril.sendat]AT+CIPCLOSE=7

[2018-09-27 00:40:14.899]: [I]-[ril.proatc]

[2018-09-27 00:40:14.903]: [I]-[ril.proatc]7, CLOSE OK

[2018-09-27 00:40:15.796]: [I]-[testALiYun.misc.getSn()]aFSNmS6131791512

[2018-09-27 00:40:15.858]: [I]-[ril.sendat]AT+SSLCREATE=5,"iot-auth.cn-shanghai.aliyuncs.com:443",1

[2018-09-27 00:40:15.864]: [I]-[ril.proatc]

[2018-09-27 00:40:15.868]: [I]-[ril.proatc]SSL&5,CREATE OK





设置SN的代码:

--[[

函数名:getDeviceName

功能  :获取设备名称

参数  :无

返回值:设备名称

]]

local function getDeviceName()

    --默认使用设备的IMEI作为设备名称,用户可以根据项目需求自行修改 

--log.info("testALiYun.misc.getImei()",misc.getImei())

    return misc.getImei()

end


--[[

函数名:setDeviceSecret

功能  :修改设备密钥

参数  :设备密钥

返回值:无

]]

local function setDeviceSecret(s)

    --默认使用设备的SN作为设备密钥,用户可以根据项目需求自行修改

    misc.setSn(s)

end



--[[

函数名:getDeviceSecret

功能  :获取设备密钥

参数  :无

返回值:设备密钥

]]

local function getDeviceSecret()

    --默认使用设备的SN作为设备密钥,用户可以根据项目需求自行修改

log.info("testALiYun.misc.getSn()",misc.getSn())

    return misc.getSn()

end

请先 登录 后评论

1 个回答

技术销售Delectate
擅长:IT

这是阿里云单方面返回的错误,应到阿里云咨询。

请先 登录 后评论
  • 1 关注
  • 0 收藏,2501 浏览
  • 景景1993 提出于 2018-09-27 00:53

相似问题