Code Monkey home page Code Monkey logo

Comments (4)

dlaw avatar dlaw commented on August 16, 2024

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.

dlaw avatar dlaw commented on August 16, 2024

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.

dlaw avatar dlaw commented on August 16, 2024

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.

edombek avatar edombek commented on August 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.