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

[HELP] Using Dash in an offline environment #961

Closed
Tightz opened this issue Oct 9, 2019 · 3 comments
Closed

[HELP] Using Dash in an offline environment #961

Tightz opened this issue Oct 9, 2019 · 3 comments

Comments

@Tightz
Copy link

Tightz commented Oct 9, 2019

Hello :)

im using Domino Analytics Distribution Py3.6 R.3.4 in an offline Environment behind a corporate Firewall.

This are my installed dash-components:

dash                     1.3.1
dash-core-components     1.2.1
dash-daq                 0.2.1
dash-html-components     1.0.1
dash-renderer            1.1.0
dash-table               4.3.0
dash-table-experiments   0.6.0
django-plotly-dash       1.0.1
jupyter-plotly-dash      0.3.0

Describe the bug
After I publish an App nothing renders.

This is my app.py Code:
code

and this is the error message:
6

All *.js are reachable from the offline Environment with 'requests_pathname_prefix': ''

I'm not sure whats I can do now and would appreciate any help!

@alexcjohnson
Copy link
Contributor

alexcjohnson commented Oct 9, 2019

yeah you've clearly gotten the js files to serve, but it seems like you may need a different routes_pathname_prefix? That's odd though, as requests_pathname_prefix needs to end with routes_pathname_prefix and the former is already blank.

I suspect folks in https://community.plot.ly/c/dash will have more thoughts about what's going on if you post this there.

This is an odd symptom - something is handling the _dash-layout request but yielding a blank response? What do you see if you look at the request with _dash-layout at the end of its url in the network tab?

@Tightz
Copy link
Author

Tightz commented Oct 9, 2019

Hey @alexcjohnson! :)

1. routes_pathname_prefix
I tried using 'routes_pathname_prefix': '/test/', just to see what happens:
git1

Clearly now it tries to find the *.js files in a subfolder called /test/, but the path without this prefix is correct.

It also adds it infront of the files i have in the assets Folder (red square), but I kinda hacked the Right path into it, so I dont think it has to do with requests_pathname_prefix

2. https://community.plot.ly/c/dash
I already opened a case there:
https://community.plot.ly/t/using-dash-in-an-offline-environment/29778/2
In hope chriddyp will have some time to answere :D

3. _dash-layout - Network
You had the Right guess!

There are multiple Tabs:

Headers
Request URL: https://<my.domain>/_dash-layout
Request Method: GET
Status Code: 200 OK
Remote Address: 10.131.67.145:443
Referrer Policy: no-referrer-when-downgrade

But the url "https://<my.domain>/_dash-layout" cant work, there is nothing.

But if I look the Location up where my _dash-component-suites is, there is also a Folder named _dash-layout but it uses the wrong prefix, like you said.

Preview
< Blank >

Response
< Blank >

Timing
CAUTION: request is not finished yet!

So its a timeout because it is the wrong Directory.

But the JavaScript files have the Right prefix, why not the assets and _dash-layout

@alexcjohnson
Copy link
Contributor

Closing - let's continue this discussion at https://community.plot.ly/t/using-dash-in-an-offline-environment/29778

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

No branches or pull requests

2 participants