Skip to content

Bad request #3

Description

@DELTA37

When i use code from ReadMe i get Bad Request

Track.objects.get(title='this must be', artist__title='royksopp', album__title='junior')
Traceback (most recent call last):
File "", line 1, in
File "yamusic/app.py", line 313, in get
album = Album.objects.get(title=album__title)
File "yamusic/app.py", line 221, in get
return super(AlbumManager, self).get(**kwargs)
File "yamusic/app.py", line 122, in get
return self._search(True, title, **kwargs)
File "yamusic/app.py", line 107, in _search
return cursor.search(self.type, titles, single=single)
File "yamusic/app.py", line 529, in search
return list(islice(result, 1))[0]
File "yamusic/app.py", line 510, in _get_result
'page': current_page,
File "yamusic/app.py", line 435, in open
return self.opener.open(url)
File "/home/delta37/anaconda3/envs/py27/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/home/delta37/anaconda3/envs/py27/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/home/delta37/anaconda3/envs/py27/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/home/delta37/anaconda3/envs/py27/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/home/delta37/anaconda3/envs/py27/lib/python2.7/urllib2.py", line 556, 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