Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bad request #3

Open
DELTA37 opened this issue Apr 14, 2018 · 0 comments
Open

Bad request #3

DELTA37 opened this issue Apr 14, 2018 · 0 comments

Comments

@DELTA37
Copy link

DELTA37 commented Apr 14, 2018

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant