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

Unable to fetch thumbnail image data, getting OK Async in response instead #10022

Closed
3 tasks done
AshishKapoor opened this issue Jun 9, 2020 · 6 comments
Closed
3 tasks done

Comments

@AshishKapoor
Copy link

AshishKapoor commented Jun 9, 2020

Unable to fetch thumbnail image data, getting OK Async in response instead.

Ref PR: #8947

Expected results

Should return the image data.

Actual results

I'm getting { "message": "OK Async" } when calling for the thumbnail.

Screenshots

Screenshot 2020-06-09 at 4 46 55 PM

Screenshot 2020-06-09 at 4 21 00 PM

How to reproduce the bug

  1. Go to 'Dashboard'
  2. Goto URL: <hostname>:<port>/api/v1/dashboard/<thumbnail_url>
  3. Observe the response

Environment

  • superset version: Superset 0.999.0dev
  • python version: Python 3.7.7
  • node.js version: v12.16.3
  • npm version: 6.14.4
  • operating system: Fedora 31 (Workstation Edition) x86_64

Checklist

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

@AshishKapoor AshishKapoor added the !deprecated-label:bug Deprecated label - Use #bug instead label Jun 9, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.87. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@AshishKapoor AshishKapoor changed the title Unable to fetch thumbnail image data Unable to fetch thumbnail image data, getting OK Async in response instead Jun 9, 2020
@dpgaspar
Copy link
Member

dpgaspar commented Jun 9, 2020

Hi @AshishKapoor,

Thumbnails need cache and celery workers, take a look at: https://apache-superset.readthedocs.io/en/0.36/installation.html#celery-tasks

Also on celery use: CELERY_IMPORTS = ("superset.sql_lab", "superset.tasks.thumbnails")

@dpgaspar dpgaspar added #question and removed !deprecated-label:bug Deprecated label - Use #bug instead labels Jun 9, 2020
@AshishKapoor
Copy link
Author

AshishKapoor commented Jun 9, 2020

@dpgaspar Okay, I'll do that.

Thanks. 🙏

@AshishKapoor
Copy link
Author

Hi @dpgaspar

I'm getting this with celery worker.

screenshot_2020-06-09_at_7 27 39_pm

What am I missing now?

@AshishKapoor AshishKapoor reopened this Jun 10, 2020
@AshishKapoor
Copy link
Author

AshishKapoor commented Jun 18, 2020

Got the thumbnail in Cache. Now how to retrieve it in the superset frontend client?

Screenshot 2020-06-19 at 8 22 42 PM

@dpgaspar
Copy link
Member

Cool! Do a get request to /api/v1/dashboard/ on the result key you'll get an attr key named thumbnail_url use that URL to get your thumbnail

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