abcdef
January 9, 2018, 1:38pm
#1
I try to load a chart with json using
mychart.load(url, "json");
but got an XML parsing error. My web server log shows:
REQUEST
SocketID: 3332
PeerIP: 127.0.0.1
PeerPort: 65095
TimeStamp: 23077815
ConnectionID: D3FD217490A1844D8CE9E6C0C1C8FC6B
SequenceNumber: 65
GET /temp_files/9A47E4BBF8FAD4439F35BEDFE61A181E.json?dhxr1515504856830=1 HTTP/1.1
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: de,en-US;q=0.7,en;q=0.3
Connection: keep-alive
Host: localhost:83
Referer: http://localhost:83/4DCGI/LogToken?TOKEN=70CEFC0DFF064C488B2F311E88F477F9
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
X-Requested-With: XMLHttpRequest
RESPONSE
SocketID: 3332
PeerIP: 127.0.0.1
PeerPort: 65095
TimeStamp: 23077815 (elapsed time: 0 ms)
ConnectionID: D3FD217490A1844D8CE9E6C0C1C8FC6B
SequenceNumber: 66
HTTP/1.1 200 OK
Accept-Ranges: bytes
Connection: close
Content-Length: 364
Content-Type: application/json
Date: Tue, 09 Jan 2018 13:34:16 GMT
Last-Modified: Tue, 09 Jan 2018 13:34:14 GMT
Server: 4D/16.0.3
[{“sla”:“100”,“color”:“#00ff00 ”,“id”:1},{“sla”:“91.52”,“color”:“#00ff00 ”,“id”:2},{“sla”:“92.37”,“color”:“#00ff00 ”,“id”:3},{“sla”:“95.58”,“color”:“#00ff00 ”,“id”:4},{“sla”:“91.3”,“color”:“#00ff00 ”,“id”:5},{“sla”:“100”,“color”:“#00ff00 ”,“id”:6},{“sla”:“100”,“color”:“#00ff00 ”,“id”:7},{“sla”:“94.44”,“color”:“#00ff00 ”,“id”:8},{“sla”:“98.72”,“color”:“#00ff00 ”,“id”:9}];
So everything seams OK but won´t work. If I try load an XML everything is OK.
What´s wrong with my json or with my code???
Unfortunately the problem cannot be reconstructed locally.
Could you please, provide a simplified complete demo, where the problem can be reconstructed.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/tutorials__auxi … pport.html