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

No JSON object could be decoded when calling index.list_documents() #1643

Closed
nlokare opened this issue Mar 21, 2016 · 12 comments
Closed

No JSON object could be decoded when calling index.list_documents() #1643

nlokare opened this issue Mar 21, 2016 · 12 comments
Assignees
Labels
api: core type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@nlokare
Copy link

nlokare commented Mar 21, 2016

Hi,

Just to clarify, is the gcloud/Cloud Search API the equivalent to App Engine's https://cloud.google.com/appengine/training/fts_intro/? I can't find any documentation specifying this, but I assumed so.

If so, I keep getting Value Error: No JSON object could be decoded whenever I call the list_indexes() or list_documents() methods.

If not, is there an equivalent library I should be using to build app engine search indexes from a Google compute cloud application?

Thanks

@tseaver tseaver added search type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Mar 21, 2016
@tseaver
Copy link
Contributor

tseaver commented Mar 21, 2016

Thanks for the report! gcloud.search is a wrapper for the Google Cloud Search API, which is still in alpha state: you need to be whitelisted to use the service.

The bug in the wrapper is that it should handle non-JSON error responses better.

@tseaver
Copy link
Contributor

tseaver commented Mar 21, 2016

Unfortunately, the early-access program is closed. :(

@dhermes
Copy link
Contributor

dhermes commented Mar 22, 2016

This was filed in #1438 / #1506 and "fixed" in #1508.

@nlokare What version of the library are you using?

@nlokare
Copy link
Author

nlokare commented Mar 22, 2016

@dhermes I am using version 0.9.0

@dhermes
Copy link
Contributor

dhermes commented Mar 22, 2016

Ahhh I see. This fix was in the 0.10.1 release.

@tseaver
Copy link
Contributor

tseaver commented Mar 22, 2016

Note that @nlokare is out of luck even if he upgrades, unless he was already on the whitelist for the Cloud Search alpha: that signup has closed.

@nlokare
Copy link
Author

nlokare commented Mar 22, 2016

@dhermes @tseaver Thanks for the updates. Do you happen to know when the whitelist will be open again?

@dhermes
Copy link
Contributor

dhermes commented Mar 23, 2016

We don't have visibility into that. I sent an email to one of the engineers on the API and hope to hear back. Sorry we don't know more.

@nlokare
Copy link
Author

nlokare commented Mar 23, 2016

@dhermes Thanks. Appreciate it. Just fyi, the online docs don't indicate that the search API is currently in alpha.

@dhermes
Copy link
Contributor

dhermes commented Mar 23, 2016

The only docs are https://cloud.google.com/search/, which 404 if you aren't on the whitelist. This is distinct from the GAE feature: https://cloud.google.com/appengine/training/fts_intro/ (at least as far as I know it is, I definitely know the docs are distinct).

@nlokare
Copy link
Author

nlokare commented Mar 23, 2016

@dhermes
Copy link
Contributor

dhermes commented Mar 23, 2016

Ahh I see. That is something we can fix! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants