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

cli 解析json出错 #96

Open
tianshuo opened this issue Oct 22, 2022 · 1 comment
Open

cli 解析json出错 #96

tianshuo opened this issue Oct 22, 2022 · 1 comment

Comments

@tianshuo
Copy link

上传文件时报错

File "/home/user/myproject/venv/bin/aliyunpan-cli", line 8, in <module>
    sys.exit(main())
  File "/home/user/myproject/venv/lib/python3.8/site-packages/aliyunpan/main.py", line 224, in main
    cli()
  File "/home/user/myproject/venv/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/user/myproject/venv/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/aliyunpan/main.py", line 95, in upload
    commander.upload(path_list, upload_path, time_out, retry, force, share, chunk_size, c)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/aliyunpan/cli/cli.py", line 382, in upload
    result = self._disk.upload_file(
  File "/home/user/myproject/venv/lib/python3.8/site-packages/aliyunpan/api/core.py", line 512, in upload_file
    file_info = self.complete(file_id, upload_id)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/aliyunpan/api/core.py", line 543, in complete
    logger.debug(r.json())
  File "/home/user/myproject/venv/lib/python3.8/site-packages/requests/models.py", line 900, in json
    return complexjson.loads(self.text, **kwargs)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/home/user/myproject/venv/lib/python3.8/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@wxy1343
Copy link
Owner

wxy1343 commented Oct 31, 2022

把这个删了logger.debug(r.json())

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