Network - Resource request error when using google charts

276 views
Skip to first unread message

kevin mulholland

unread,
Jul 6, 2016, 8:55:52 AM7/6/16
to phantomjs
Hi, I am trying to get a script to work to generate SVGs from google charts, all was fine before google changed their API a while back

I have attached the JS file and the HTML that is called from it

its run as

    phantomjs timeline_1.js timeline_1.html timeline_1

when run with --debug=true I get the following in the debug data

2016-07-06T13:47:19 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(OperationCanceledError) ( "Operation canceled" ) URL: "https://www.gstatic.com/charts/44/js/jsapi_compiled_timeline_module.js"
2016-07-06T13:47:19 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(OperationCanceledError) ( "Operation canceled" ) URL: "https://www.gstatic.com/charts/44/js/jsapi_compiled_default_module.js"
2016-07-06T13:47:19 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(OperationCanceledError) ( "Operation canceled" ) URL: "https://www.gstatic.com/charts/44/js/jsapi_compiled_format_module.js"
2016-07-06T13:47:19 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(OperationCanceledError) ( "Operation canceled" ) URL: "https://www.gstatic.com/charts/44/js/jsapi_compiled_ui_module.js"
2016-07-06T13:47:19 [DEBUG] Network - Resource request error: QNetworkReply::NetworkError(OperationCanceledError) ( "Operation canceled" ) URL: "https://www.gstatic.com/charts/44/third_party/dygraphs/dygraph-tickers-combined.js"

trying the html page in a browser (chrome/brave/firefox on linux) works without a problem, generating the SVG timeline image

I am running phantomjs 2.1.1.

I have also tried --ignore-ssl-errors=true --web-security=false --ssl-protocol=any  as arguments to no avail.

Many thanks for any suggestions


timeline_1.html
timeline_1.js
Reply all
Reply to author
Forward
0 new messages