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

SyntaxError: An invalid or illegal string was specified in drawing profile chart #24

Open
elcojacobs opened this issue Dec 6, 2013 · 1 comment

Comments

@elcojacobs
Copy link
Member

I helped a user debug and stumbled upon this JS error:

SyntaxError: An invalid or illegal string was specified

canvas.fillText(temperature, xCoordinate - 5, yCoordinate);

happens at https://github.com/BrewPi/brewpi-www/blob/master/js/control-panel.js#L281

Profile Name:Exit 148 IPA
Start Date:12/05/2013 19:20:53
Day Temperature Date and Time
0 12/05/2013 19:20:53
1 65 12/06/2013 19:20:53
5 65 12/10/2013 19:20:53
6 68 12/11/2013 19:20:53
7 70 12/12/2013 19:20:53
8 68 12/13/2013 19:20:53
9 65 12/14/2013 19:20:53
13 65 12/18/2013 19:20:53
14 32 12/19/2013 19:20:53

@elcojacobs
Copy link
Member Author

firebug says on breakpoint: temperature: "Nan", yCoordinate: NaN

Happened in firefox, profile chart did not show at all. Refresh button did not work and triggered the error.

Chrome had no trouble displaying the chart.

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

1 participant