question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Ref PR: https://github.com/apache/incubator-superset/pull/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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dpgasparcommented, Jun 18, 2020

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

1reaction
dpgasparcommented, 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")

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to fetch thumbnail image data, getting OK Async in ...
Go to 'Dashboard' · Goto URL: <hostname>:<port>/api/v1/dashboard/<thumbnail_url> · Observe the response ...
Read more >
How do I get a YouTube video thumbnail from the YouTube API?
The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (i.e., one of...
Read more >
async and await in JavaScript | Go Make Things
This week, we learned about JavaScript Promises and the fetch() method. Today, we're going to learn how async and await can make writing ......
Read more >
async/await in SwiftUI | Kodeco, the new raywenderlich.com
For example, this sample code from WWDC's Meet async/await in Swift downloads data, creates an image from the data, then renders a thumbnail...
Read more >
Using Swift's async/await to build an image loader - Donny Wals
In this post, I'm going to take a look at building an asynchronous image loader that has support for caching.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found