Comments (4)
I have the same errors on Debian 10.7.
The reason ol
is not defined is because of the previous error:
Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH ol-3.17.1.js:1
This seems to indicate some issue with the HTTP server configuration.
Regards,
David
from dump1090.
net_io.c
says "here we assume that the socket buffer is enough without doing any kind of userspace buffering".
The issue is that certain JS files are larger than the system socket buffer size:
$ du -b public_html/jquery/jquery-ui-1.11.4.min.js
240427 public_html/jquery/jquery-ui-1.11.4.min.js
$ du -b public_html/ol3/ol-3.17.1.js
495405 public_html/ol3/ol-3.17.1.js
The end of the file is truncated resulting in the reported content length mismatch. All the other errors are a result of these two files not loading.
from dump1090.
Workaround: pass --net-buffer 3
as an additional argument to dump1090. This increases the TCP buffer size to 512 kilobytes, which is large enough for the giant jquery and ol scripts. (The default buffer size is 64 kilobytes.)
from dump1090.
@dlaw Does not help
127.0.0.1/:129 GET about:blank net::ERR_UNKNOWN_URL_SCHEME
127.0.0.1/:11 GET http://127.0.0.1:8080/ol3/ol-3.17.1.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
ol3-layerswitcher.js:9 Uncaught ReferenceError: ol is not defined
at ol3-layerswitcher.js:9:1
(anonymous) @ ol3-layerswitcher.js:9
script.js:6 Uncaught ReferenceError: ol is not defined
at script.js:6:22
(anonymous) @ script.js:6
127.0.0.1/:219 GET about:blank net::ERR_UNKNOWN_URL_SCHEME
script.js:873 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at resortTable (script.js:873:43)
at sortBy (script.js:898:9)
at sortByAltitude (script.js:840:29)
at initialize_map (script.js:359:17)
at Object.<anonymous> (script.js:222:25)
at i (jquery-3.0.0.min.js:2:27623)
at Object.fireWith [as resolveWith] (jquery-3.0.0.min.js:2:28389)
at A (jquery-3.0.0.min.js:4:13816)
at XMLHttpRequest.<anonymous> (jquery-3.0.0.min.js:4:16102)
resortTable @ script.js:873
sortBy @ script.js:898
sortByAltitude @ script.js:840
initialize_map @ script.js:359
(anonymous) @ script.js:222
i @ jquery-3.0.0.min.js:2
fireWith @ jquery-3.0.0.min.js:2
A @ jquery-3.0.0.min.js:4
(anonymous) @ jquery-3.0.0.min.js:4
load (async)
send @ jquery-3.0.0.min.js:4
ajax @ jquery-3.0.0.min.js:4
initialize @ script.js:202
onload @ (index):31
from dump1090.
Related Issues (9)
- Support Alpine linux
- Errors building on MacOS HOT 1
- GCC compile errors: "first defined here" HOT 2
- lot of errors like "multiple definition of" HOT 5
- install via apt-get not working HOT 2
- No "mirsdrapi-rsp.h" headers exists HOT 1
- API3 version compile error HOT 3
- Freq option doesn't seem to work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dump1090.