Skip to content

400 Bad Request Error #2

Description

@Meghdeep

I'm getting a 400 bad request for pretty much every function here.

urllib2.HTTPError: HTTP Error 400: Bad Request

Traceback (most recent call last):
File "", line 1, in
File "youtubeapi.py", line 50, in get_video_info
apiData = self.api_get(api_url, params)
File "youtubeapi.py", line 281, in api_get
f = urllib2.urlopen(url + "?" + urllib.urlencode(params))
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions