katjasei
Posts: 1
Joined: Thu Feb 04, 2021 6:58 am

https://code.highcharts.com/stock/highstock errors in docraptor

I use highcharts to render charts on the site also in pdf ,that I get through docraptor, before Tuesday evening everything worked fine, but after, when I try to get pdf I get error 422 Unprocessable Entity, in docraptor log these errors:

[Javascript Error] TypeError: null is not an object (evaluating 'v.body')
[Javascript Error] Wed Feb 03 2021 21:48:23 GMT+0000 (UTC)
[Javascript Error] https://code.highcharts.com/stock/highstock.js:46 in parseMarkup
[Javascript Error] https://code.highcharts.com/stock/highstock.js:43 in y
[Javascript Error] https://code.highcharts.com/stock/highstock.js:95 in buildSVG
[Javascript Error] https://code.highcharts.com/stock/highstock.js:108 in buildText
[Javascript Error] https://code.highcharts.com/stock/highstock.js:50 in add
[Javascript Error] https://code.highcharts.com/stock/highstock.js:355 in applyDescription
[Javascript Error] https://code.highcharts.com/stock/highstock.js:354 in setTitle
.....

[Javascript Error] :479 in onload


I also try to get pdf for this example: https://www.highcharts.com/demo/line-labels

Same errors in docrartor.
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: https://code.highcharts.com/stock/highstock errors in docraptor

Hello, welcome to the official highcharts forum, and thanks for contacting us with your question!
Highcharts' newest version was released on Tuesday, so I think that these two events might be correlated. Could you share the demo, where your issue is reproduced? You probably are referring to some property of the object, that is not created yet, so I would advise you to wrap that call with an if statement, so you are sure that the object exists.

Kind regards,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Stock”