{"action":"created","issue":{"url":"https://api.github.com/repos/vimeo/vimeo.py/issues/65","labels_url":"https://api.github.com/repos/vimeo/vimeo.py/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/vimeo/vimeo.py/issues/65/comments","events_url":"https://api.github.com/repos/vimeo/vimeo.py/issues/65/events","html_url":"https://github.com/vimeo/vimeo.py/issues/65","id":94059350,"number":65,"title":"Crash when not specifying timeout","user":{"login":"boazin","id":5410799,"avatar_url":"https://avatars.githubusercontent.com/u/5410799?v=3","gravatar_id":"","url":"https://api.github.com/users/boazin","html_url":"https://github.com/boazin","followers_url":"https://api.github.com/users/boazin/followers","following_url":"https://api.github.com/users/boazin/following{/other_user}","gists_url":"https://api.github.com/users/boazin/gists{/gist_id}","starred_url":"https://api.github.com/users/boazin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boazin/subscriptions","organizations_url":"https://api.github.com/users/boazin/orgs","repos_url":"https://api.github.com/users/boazin/repos","events_url":"https://api.github.com/users/boazin/events{/privacy}","received_events_url":"https://api.github.com/users/boazin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"greedo","id":410872,"avatar_url":"https://avatars.githubusercontent.com/u/410872?v=3","gravatar_id":"","url":"https://api.github.com/users/greedo","html_url":"https://github.com/greedo","followers_url":"https://api.github.com/users/greedo/followers","following_url":"https://api.github.com/users/greedo/following{/other_user}","gists_url":"https://api.github.com/users/greedo/gists{/gist_id}","starred_url":"https://api.github.com/users/greedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greedo/subscriptions","organizations_url":"https://api.github.com/users/greedo/orgs","repos_url":"https://api.github.com/users/greedo/repos","events_url":"https://api.github.com/users/greedo/events{/privacy}","received_events_url":"https://api.github.com/users/greedo/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-07-09T14:09:14Z","updated_at":"2015-07-21T07:22:16Z","closed_at":null,"body":"Not sure what was the intention of `kwargs['timeout'] = kwargs.get('timeout', (1, 30))`\r\n(ln 66 client.py)\r\n\r\nBut if I don't specify timeout in the vimeo_obj.get(url)\r\n\r\nI'm getting\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/local/lib/python2.7/dist-packages/vimeo/client.py\", line 75, in caller\r\n    **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 55, in get\r\n    return request('get', url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/api.py\", line 44, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 455, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/sessions.py\", line 558, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/lib/python2.7/dist-packages/requests/adapters.py\", line 316, in send\r\n    timeout = TimeoutSauce(connect=timeout, read=timeout)\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/util.py\", line 116, in __init__\r\n    self._connect = self._validate_timeout(connect, 'connect')\r\n  File \"/usr/lib/python2.7/dist-packages/urllib3/util.py\", line 147, in _validate_timeout\r\n    \"int or float.\" % (name, value))\r\nValueError: Timeout value connect was (1, 30), but it must be an int or float.\r\n```\r\n\r\nMaybe it worked with an older version of requests?"},"comment":{"url":"https://api.github.com/repos/vimeo/vimeo.py/issues/comments/123197108","html_url":"https://github.com/vimeo/vimeo.py/issues/65#issuecomment-123197108","issue_url":"https://api.github.com/repos/vimeo/vimeo.py/issues/65","id":123197108,"user":{"login":"boazin","id":5410799,"avatar_url":"https://avatars.githubusercontent.com/u/5410799?v=3","gravatar_id":"","url":"https://api.github.com/users/boazin","html_url":"https://github.com/boazin","followers_url":"https://api.github.com/users/boazin/followers","following_url":"https://api.github.com/users/boazin/following{/other_user}","gists_url":"https://api.github.com/users/boazin/gists{/gist_id}","starred_url":"https://api.github.com/users/boazin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boazin/subscriptions","organizations_url":"https://api.github.com/users/boazin/orgs","repos_url":"https://api.github.com/users/boazin/repos","events_url":"https://api.github.com/users/boazin/events{/privacy}","received_events_url":"https://api.github.com/users/boazin/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T07:22:16Z","updated_at":"2015-07-21T07:22:16Z","body":"Well, I think it is a question of versions. Run `pip freeze` to see what you have. (mine is below)\r\nThe code is dead simple:\r\n````\r\nimport vimeo\r\nVIMEO_API_TOKEN = \"\"\r\nVIMEO_API_SECRET = \"\"\r\nTOKEN = \"\"\r\nvimeo_username = ''\r\nvimeo_obj = vimeo.VimeoClient(token=TOKEN, key=VIMEO_API_TOKEN, secret=VIMEO_API_SECRET)\r\nvimeo_obj.get('/users?query={0}'.format(vimeo_username))\r\n```\r\n\r\nMy `pip freeze`:\r\n```\r\nPillow==2.3.0\r\nPyVimeo==0.3.0\r\nargparse==1.2.1\r\nbeautifulsoup4==4.3.2\r\nboto==2.38.0\r\ncffi==1.1.0\r\nchardet==2.0.1\r\ncolorama==0.2.5\r\ncryptography==0.9\r\nenum34==1.0.4\r\ngoogle-api-python-client==1.4.0\r\nhtml5lib==0.999\r\nhttplib2==0.9.1\r\nidna==2.0\r\nipaddress==1.0.7\r\nmeld3==0.6.10\r\nmercurial==2.8.2\r\noauth2==1.5.211\r\noauth2client==1.4.11\r\nopengraph==0.5\r\npyOpenSSL==0.13\r\npyasn1==0.1.7\r\npyasn1-modules==0.0.5\r\npycparser==2.13\r\npymongo==3.0.2\r\npython-dateutil==2.4.2\r\npython-instagram==1.3.1\r\nrequests==2.2.1\r\nrsa==3.1.4\r\nsendgrid==1.4.0\r\nsimplejson==3.7.3\r\nsix==1.9.0\r\nsmtpapi==0.2.0\r\nsupervisor==3.0b2\r\nuritemplate==0.6\r\nurllib3==1.7.1\r\nwheel==0.24.0\r\nwsgiref==0.1.2\r\n```"}}