Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

404 Client Error: Not Found #26

Open
adamdullenty opened this issue Nov 5, 2015 · 2 comments
Open

404 Client Error: Not Found #26

adamdullenty opened this issue Nov 5, 2015 · 2 comments

Comments

@adamdullenty
Copy link

Hi,

Just trying to get some music imported and I am getting the following issue:

Traceback (most recent call last):
  File "ImportList.py", line 194, in <module>
    api = open_api()
  File "/home/squawk/gmusic-playlist-master/common.py", line 151, in open_api
    dlog(u'Available track details: '+str(get_google_track_details()))
  File "/home/squawk/gmusic-playlist-master/common.py", line 63, in get_google_track_details
    results = api.search_all_access(sample_song,max_results=1).get('song_hits')
  File "/usr/local/lib/python2.7/dist-packages/gmusicapi-7.0.1.dev0-py2.7.egg/gmusicapi/clients/mobileclient.py", line 940, in search_all_access
    res = self._make_call(mobileclient.Search, query, max_results)
  File "/usr/local/lib/python2.7/dist-packages/gmusicapi-7.0.1.dev0-py2.7.egg/gmusicapi/clients/shared.py", line 80, in _make_call
    return protocol.perform(self.session, self.validate, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/gmusicapi-7.0.1.dev0-py2.7.egg/gmusicapi/protocol/shared.py", line 225, in perform
    raise CallFailure(err_msg, call_name)
gmusicapi.exceptions.CallFailure: Search: 404 Client Error: Not Found for url: https://mclients.googleapis.com/sj/v1.11/query?q=one+u2&max-results=1
(requests kwargs: {'url': 'https://mclients.googleapis.com/sj/v1.11/query', 'headers': {'Authorization': '<omitted>'}, 'params': {'q': 'one u2', 'max-results': 1}, 'method': 'GET'})
(response was: '{\n "error": {\n  "errors": [\n   {\n    "domain": "global",\n    "reason": "notFound",\n    "message": "Not Found"\n   }\n  ],\n  "code": 404,\n  "message": "Not Found"\n }\n}\n')
@soulfx
Copy link
Owner

soulfx commented Nov 7, 2015

do you have an all access google music account?

@soulfx
Copy link
Owner

soulfx commented Nov 7, 2015

I've updated to the latest development version of gmusicapi, but I'm not able to reproduce the issue on my side.

I've added the version to the readme for the last gmusicapi version for which these playlist scripts were updated with. Maybe give that version a try.

Someone from gmusicapi may be able to help out more.

soulfx added a commit that referenced this issue Dec 6, 2015
 - turn off aa search for non subscribed accounts. searching in the
   local library will still be supported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants