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

issue in fetching data in python - Status error: 2 #1

Closed
himanshudhingra opened this issue Feb 25, 2019 · 1 comment
Closed

issue in fetching data in python - Status error: 2 #1

himanshudhingra opened this issue Feb 25, 2019 · 1 comment

Comments

@himanshudhingra
Copy link

Hi,
I am using Redash.generate_query_result to fetch data from Redash.
It behaves randomly that sometimes it gets the result and sometimes throws an error with Status: 2. Attaching screenshot.

image

The same query runs in Redash successfully hence, no issues with server.

Currently using Python's Try, Exception to complete the job, but it sometimes take forever to execute.
Is it a known issue? What can be the possible reasons for it and what can be the solution?

@damienzeng73
Copy link
Owner

damienzeng73 commented Feb 27, 2019

Hi, himanshudhingra

Status: 2 means processing.

You can find all statuses here
https://github.com/getredash/redash/blob/8f0cffe42494b603b4c8f5c7c65cfce7ccf93d64/client/app/services/query-result.js#L56-L61

If you want to fetch data, you should use Redash.get('query_results/{query_result_id}') instead.

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

No branches or pull requests

2 participants