我正在尝试使用双重功能在onedrive上备份我的计算机上的文件。 我已经安装了所有依赖项,当运行duplicity时,会生成一个auth链接,我必须在浏览器中打开,而不是在给予应用程序粘贴返回URL权限后的双重性。
我做了所有这些步骤,但口是心非又回来了
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的应用程序,其中双重性生成auth链接。 但是当我转到duplicity提供的链接时,我看到“Duplicity要求权限”。
那么我应该添加自己的应用程序,并以某种方式提供其表述形式的口是什么? (我正在搜索如何做但没有结果)或者它是一个双重错误?
答案 0 :(得分:1)
与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的文件提供全面支持