qq_19267071
qq_19267071
2021-01-25 02:27

这是什么错误 是API的问题吗 腾讯云函数 python

  • python
  • 腾讯云
{"errorCode":-1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n  File \"/var/user/index.py\", line 281, in main\n    taskPool()\n  File \"/var/user/index.py\", line 259, in taskPool\n    check() # 每天对api做一次检查\n  File \"/var/user/index.py\", line 247, in check\n    respones = requests.get(url)\n  File \"/var/lang/python3/lib/python3.6/site-packages/requests/api.py\", line 75, in get\n    return request('get', url, params=params, **kwargs)\n  File \"/var/lang/python3/lib/python3.6/site-packages/requests/api.py\", line 60, in request\n    return session.request(method=method, url=url, **kwargs)\n  File \"/var/lang/python3/lib/python3.6/site-packages/requests/sessions.py\", line 519, in request\n    prep = self.prepare_request(req)\n  File \"/var/lang/python3/lib/python3.6/site-packages/requests/sessions.py\", line 462, in prepare_request\n    hooks=merge_hooks(request.hooks, self.hooks),\n  File \"/var/lang/python3/lib/python3.6/site-packages/requests/models.py\", line 313, in prepare\n    self.prepare_url(url, params)\n  File \"/var/lang/python3/lib/python3.6/site-packages/requests/models.py\", line 387, in prepare_url\n    raise MissingSchema(error)\nrequests.exceptions.MissingSchema: Invalid URL '?do=check': No schema supplied. Perhaps you meant http://?do=check?","statusCode":430}
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答