推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
bilibala

js 文件只加载了一部分

  •  
  •   bilibala · Nov 13, 2015 · 4240 views
    This topic created in 3860 days ago, the information mentioned may be changed or developed.

    好奇怪的问题,这个 js 文件只加载了一部分,直接拖到最后可以看到是一个不完整的 js 文件
    地址: http://app-video-test.biquu.com/static/gen/admin.js

    3 replies    2015-11-13 16:09:01 +08:00
    zivfun
        1
    zivfun  
       Nov 13, 2015
    <html>
    <head>
    <title>Internal Server Error</title>
    </head>
    <body>
    <h1>Internal Server Error</h1>

    </body>
    </html>
    zivfun
        2
    zivfun  
       Nov 13, 2015
    自己去查
    bilibala
        3
    bilibala  
    OP
       Nov 13, 2015
    问题解决了,访问这个链接时,查看了 gunicorn 的运行日志,出现了这样的错误信息:
    ---------------------------------------
    Traceback (most recent call last):
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 108, in handle_request
    resp.write_file(respiter)
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 333, in write_file
    self.sendfile_all(fileno, self.sock.fileno(), fo_offset, nbytes)
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 310, in sendfile_all
    sent += sendfile(sockno, fileno, offset+sent, nbytes-sent)
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/_sendfile.py", line 66, in sendfile
    raise OSError(e, os.strerror(e))
    OSError: [Errno 11] Resource temporarily unavailable
    ERROR:gunicorn.error:Error handling request
    Traceback (most recent call last):
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 108, in handle_request
    resp.write_file(respiter)
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 333, in write_file
    self.sendfile_all(fileno, self.sock.fileno(), fo_offset, nbytes)
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/wsgi.py", line 310, in sendfile_all
    sent += sendfile(sockno, fileno, offset+sent, nbytes-sent)
    File "/home/run_user/.virtualenvs/product/local/lib/python2.7/site-packages/gunicorn/http/_sendfile.py", line 66, in sendfile
    raise OSError(e, os.strerror(e))
    OSError: [Errno 11] Resource temporarily unavailable

    ---------------------------------------

    把 gunicorn 版本升级到 19.3.0 就解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3144 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 13:40 · PVG 21:40 · LAX 06:40 · JFK 09:40
    ♥ Do have faith in what you're doing.