一个驱动器客户端的重复备份错误



我正试图在一个驱动器中使用双面性备份计算机上的文件。我已经安装了所有的依赖项,当运行duplicity时,会生成身份验证链接,我必须在浏览器中打开该链接,并在授予应用程序粘贴返回url的权限后在duplicity。

我做了所有这些步骤,但口是心非让我回到

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1532, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1526, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1364, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/duplicity/commandline.py", line 1116, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/usr/lib/python2.7/site-packages/duplicity/commandline.py", line 1005, in set_backend
    globals.backend = backend.get_backend(bend)
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 223, in get_backend
    obj = get_backend_object(url_string)
  File "/usr/lib/python2.7/site-packages/duplicity/backend.py", line 209, in get_backend_object
    return factory(pu)
  File "/usr/lib/python2.7/site-packages/duplicity/backends/onedrivebackend.py", line 90, in __init__
    self.initialize_oauth2_session()
  File "/usr/lib/python2.7/site-packages/duplicity/backends/onedrivebackend.py", line 153, in initialize_oauth2_session
    authorization_response=redirected_to)
  File "/usr/lib/python2.7/site-packages/requests_oauthlib/oauth2_session.py", line 232, in fetch_token
    self._client.parse_request_body_response(r.text, scope=self.scope)
  File "/usr/lib/python2.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 409, in parse_request_body_response
    self.token = parse_token_response(body, scope=scope)
  File "/usr/lib/python2.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 376, in parse_token_response
    validate_token_parameters(params)
  File "/usr/lib/python2.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 383, in validate_token_parameters
    raise_from_error(params.get('error'), params)
  File "/usr/lib/python2.7/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 271, in raise_from_error
    raise cls(**kwargs)
InvalidClientError: (invalid_client) The client does not exist. If you are the application developer, configure a new application through the application management site at https://manage.dev.live.com/.

看起来没有一个ID为的应用程序可以通过该ID生成身份验证链接。但当我转到duplicity提供的链接时,我会看到"duplicity是在请求权限"。

那么,我应该添加自己的应用程序,并以某种方式将其id提供给双面性吗?(我在搜索如何做到这一点,但没有结果)还是这是一个口是心非的错误?

所有与Windows Live的程序化交互都需要客户端ID,它将您的应用程序唯一标识为Windows Live。你的应用程序在发送的每个请求中都必须包含客户端ID到Messenger Connect API服务。

您必须注册您的应用程序,如本Windows Live官方教程所示:https://msdn.microsoft.com/en-us/library/ff751474.aspx

然后将您的ID传递给应用程序,以便在执行时向API请求时能够在Windows Live中进行身份验证。

您可以在中使用代码https://github.com/fkalis/bash-onedrive-upload它还完全支持上传大小大于100MB 的文件

相关内容

  • 没有找到相关文章