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

no data display #475

Open
mfjiang opened this issue Jun 29, 2019 · 2 comments
Open

no data display #475

mfjiang opened this issue Jun 29, 2019 · 2 comments
Labels

Comments

@mfjiang
Copy link

mfjiang commented Jun 29, 2019

My system is cent os 7. I use "python index.py --port 900" to start the service.But there is no data display on the web UI.

@DanielAlcon
Copy link

Having the same issue with debian 9 lite. I've changed the default port to 81 just to try and see the data, but everything is empty

@alozovskoy
Copy link
Contributor

alozovskoy commented Aug 10, 2019

It's not a port issue - problem in format of JSON data, which comes to frontend. Correct JSON data is like

[{"foo": "bar"}]

but now a Dash module return something like

[{\"foo\": \"bar\"}]

So JSON parser on front cant "read" data like that and nothing can be displayed. (And you can get some errors aout it in developer sonsole of your browser)

As an ad hoc solution you can simple rewrite function "_parseAndPrint" in app/server/linux_json_api.sh to

_parseAndPrint() {
  while read data; do
    echo -n "$data"
  done;
}

Why this function needed existed escaping - IDK. But it's added by Author (at 37419dc), so may be it's realy needed (and it's why i dont send PR with it). But, after function edit all charts on my Dash started display data fine.

And also #453 about it

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

No branches or pull requests

4 participants