rhming / UnicomDailyTask

联通日常任务 腾讯云函数定时执行
MIT License
152 stars 77 forks source link

测试有在跑,最后报错 #54

Open infisz opened 2 years ago

infisz commented 2 years ago

ERROR RequestId:b510daf7-a66d-4571-92d0-50ef13a1ad01 Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n File \"/var/user/index.py\", line 120, in main_handler\n Template(ZSMHAct) # 7\n File \"/var/user/index.py\", line 43, in Template\n ts.append(Thread(target=cls(mobile, password).run))\n File \"/var/user/activity/wolearn/zsmh.py\", line 11, in init\n super(ZSMHAct, self).init(mobile, password)\n File \"/var/user/activity/wolearn/wolearn.py\", line 13, in init\n super(WoLearn, self).init(mobile, password)\n File \"/var/user/utils/unicomLogin.py\", line 32, in init\n self.login()\n File \"/var/user/utils/unicomLogin.py\", line 100, in login\n \"appId\": self.getAppId(),\n File \"/var/user/utils/unicomLogin.py\", line 62, in getAppId\n appIds = json.loads(fp.read()) # type: dict\n File \"/var/lang/python3/lib/python3.6/json/init.py\", line 354, in loads\n return _default_decoder.decode(s)\n File \"/var/lang/python3/lib/python3.6/json/decoder.py\", line 339, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File \"/var/lang/python3/lib/python3.6/json/decoder.py\", line 355, in raw_decode\n obj, end = self.scan_once(s, idx)\njson.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 1 (char 177)","statusCode":430}

END RequestId:b510daf7-a66d-4571-92d0-50ef13a1ad01

Report RequestId:b510daf7-a66d-4571-92d0-50ef13a1ad01 Duration:15144ms Memory:128MB MemUsage:36.477692MB

rhming commented 2 years ago

utils/appId.json配置文件要配置正确,上面提示要使用双引号括住属性