Unexpected exception when pushing from windows
See original GitHub issueHi, when I try to push to a repo on windows 7 64bits I get this:
unexpected exception (run with -v for details)
Running with -v gives:
Pushing to dropbox:///test
Traceback (most recent call last):
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 124, in _validate_timeout
float(value)
TypeError: float() argument must be a string or a number, not 'Timeout'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "p:\anaconda\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "p:\anaconda\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "P:\Anaconda\Scripts\git-remote-dropbox.exe\__main__.py", line 9, in <module>
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 759, in main
helper.run()
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 370, in run
self._do_list(line)
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 395, in _do_list
refs = self._get_refs(for_push=for_push)
File "p:\anaconda\lib\site-packages\git_remote_dropbox\__init__.py", line 652, in _get_refs
res = self._connection().files_list_folder(loc, recursive=True)
File "p:\anaconda\lib\site-packages\dropbox\base.py", line 715, in files_list_folder
None,
File "p:\anaconda\lib\site-packages\dropbox\dropbox.py", line 234, in request
timeout=timeout)
File "p:\anaconda\lib\site-packages\dropbox\dropbox.py", line 325, in request_json_string_with_retry
timeout=timeout)
File "p:\anaconda\lib\site-packages\dropbox\dropbox.py", line 409, in request_json_string
timeout=timeout,
File "p:\anaconda\lib\site-packages\requests\sessions.py", line 565, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "p:\anaconda\lib\site-packages\requests\sessions.py", line 518, in request
resp = self.send(prep, **send_kwargs)
File "p:\anaconda\lib\site-packages\requests\sessions.py", line 639, in send
r = adapter.send(request, **kwargs)
File "p:\anaconda\lib\site-packages\requests\adapters.py", line 438, in send
timeout=timeout
File "p:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 588, in urlopen
timeout_obj = self._get_timeout(timeout)
File "p:\anaconda\lib\site-packages\urllib3\connectionpool.py", line 303, in _get_timeout
return Timeout.from_float(timeout)
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 154, in from_float
return Timeout(read=timeout, connect=timeout)
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 94, in __init__
self._connect = self._validate_timeout(connect, 'connect')
File "p:\anaconda\lib\site-packages\urllib3\util\timeout.py", line 127, in _validate_timeout
"int, float or None." % (name, value))
ValueError: Timeout value connect was Timeout(connect=30, read=30, total=None), but it must be an int, float or None.
The only steps that I have taken were installing the program via pip (as in the instructions) and creating a file called .git-remote-dropbox.json
in my home folder (inside my user profile) with the API key, then creating a test repo in my computer (not in dropbox), then running git remote add origin dropbox:///
.
What could I be doing wrong?
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Git push over ssh fails on windows with 'the remote end ...
I've been scouring google and stackoverflow, and tried every solution I could find: Set the http.
Read more >The system has rebooted without cleanly shutting down first
This event indicates that some unexpected activity prevented Windows from shutting down correctly. Such a shutdown might be caused by an ...
Read more >Installation Error - An error occured when updating the ...
An error occurred while sending the request." message on every push/pull to GitHub. I am using git version 2.18.0.windows.1 and Git Credentials ...
Read more >Error encountered while pushing to the remote repository
I'm using Visual Studio to integrate to bitbucket and I get the following error. Failed to push to the remote repository. See the...
Read more >Troubleshooting Windows Devices: Workspace ONE ...
Use these steps to identify why a Windows update failed to push to devices. ☐Navigate to Windows Settings > Update & Security >...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Steps to Reproduce:
I created a new Google Cloud instance running Ubuntu 16.04 LTS.
I then installed the Python 3.6 version of Anaconda:
Then changed my path:
Installed git-remote-dropbox:
Then went to the app console. Selected “Create App” > “Dropbox API” > “Full Dropbox” > Name: “test-new-111” > Choose Dropbox Account: “Personal” (I also have a work Dropbox). Then clicked on “Generate Access Token” and copied and pasted that into
~/.git-remote-dropbox.json
:Then created a test git repo:
And then was unable to push:
Awesome! Closing the issue now.