mutability / dump1090

Dump1090 is a simple Mode S decoder for RTLSDR devices
528 stars 137 forks source link

Can not display in the browser, why? #167

Closed dragonyzl closed 7 years ago

dragonyzl commented 7 years ago

After I upgrade the Ubuntu from 14.04 to 16.04, and recreat the dump1090, the following errors found in browser and no planes displayed in the browser: ReferenceError: ol is not defined[详细了解] ol3-layerswitcher.js:9:1 ReferenceError: ol is not defined[详细了解] script.js:6:5 TypeError: PlanesOrdered is undefined[详细了解] script.js:873:25

Could someone tell me why? Thanks in advance!

giomasce commented 7 years ago

I have the same problem. It appears that the request for file ol3/ol-3.17.1.js fails: the Content-Length header is correct, but the response contains no data. All the other requests appear to be fine. I don't understand why that one fails specifically.

mutability commented 7 years ago

What webserver are you using?

giomasce commented 7 years ago

The internal one. I just added -DENABLE_WEBSERVER to the compilation flags.

mutability commented 7 years ago

That is unsupported and known to be broken. Use an external webserver.

dragonyzl commented 7 years ago

In fact, the internal webserver is good for a standalone program that is suitable for some embedded application.

OKay, I am not familiar with the network app development. May be someone can solve the issue.

mutability commented 7 years ago

Good except it doesn't actually work for larger files as you have discovered. It needs a rewrite to fix it and that is not interesting for me, though I will take patches if someone else wants to do the work

dragonyzl commented 7 years ago

I found the reason is that the "(" is removed in the file ol3/ol-3.17.1.js, after the "(" is added to the file, everything is OK