Git Product home page Git Product logo

Comments (6)

mrocklin avatar mrocklin commented on September 16, 2024

My guess is that Dask labextension queries that address every second to see if a cluster is alive there. If it is then it connects up the existing plots.

My guess is that we might want to wrap up the line that queries that file in whatever the TypeScript equivalent of a try-except block is. It's ok to not find that address.

from dask-labextension.

mrocklin avatar mrocklin commented on September 16, 2024

@ian-r-rose is my understanding above correct?

from dask-labextension.

jhamman avatar jhamman commented on September 16, 2024

My understanding is the fetch of this logo is being used to determine if the dashboard is up. So most of the behavior here seems correct, we probably just want to silence the error in some nice way.

let logoUrl = URLExt.join(url, 'statics/images/dask-logo.svg');
// Bust caching for src attr
// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Bypassing_the_cache
logoUrl += (/\?/.test(logoUrl) ? '&' : '?') + new Date().getTime();
let img = document.createElement('img');
img.onload = () => {
resolve(true);
};
img.onerror = () => {
resolve(false);
};

from dask-labextension.

ian-r-rose avatar ian-r-rose commented on September 16, 2024

Yes, @mrocklin, your understanding is right. The "logo fetching" has always been a hack, it is checking to see if the dashboard server is up and running while getting around some browser-security policies. I would love to be able to silence those errors, but I am not aware of a way to patch the tornado server to remove them.

@jhamman, I am rewriting the proxying logic in #31, so hopefully a lot of these issues will be solved (or greatly mitigated) there. In particular, once we have stronger guarantees that the cluster will be available under the same origin we will no longer need to check for the logo itself.

I am puzzled as to why it's a 500 error and not a 404, however... are there any other errors you see that might be relevant?

from dask-labextension.

jhamman avatar jhamman commented on September 16, 2024
[E 10:47:50.364 LabApp] 500 GET /proxy/8787/statics/images/dask-logo.svg?1544204869455 (10.148.0.4) 2.54ms referer=http://localhost:8888/lab
[W 10:47:52.458 LabApp] 404 GET /proxy/8787/status/individual-task-stream (10.148.0.4) 17.78ms referer=http://localhost:8888/lab

While futzing about with the app, we did see some 404 errors but they were only triggered by changing urls to the dashboard. These could be related but I think the 404 comes up when the app cant find a dashboard it previously had found. The 500 errors come when the app hasn't found a dashboard at all yet.

from dask-labextension.

consideRatio avatar consideRatio commented on September 16, 2024

In a JupyterHub, I end up with the following three different errors in the browsers console log. This is while I'm successfully running stuff against my Dask worker pods through the scheduler etc.

Failed to load resource: net::ERR_NAME_NOT_RESOLVED dask-logo.svg:1

Failed to load resource: net::ERR_NAME_NOT_RESOLVED /user/erik.sundell/dask/clusters?1546445236329:1

Failed to load resource: the server responded with a status of 404 () clusters.js:5 

from dask-labextension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.