• 请不要在回答技术问题时复制粘贴 AI 生成的内容
rizon
V2EX  ›  程序员

[nodejs express] nginx 代理导致无法显示 res.write 的数据,求助大佬!

  •  
  •   rizon ·
    othorizon · Jun 18, 2019 · 1276 views
    This topic created in 2547 days ago, the information mentioned may be changed or developed.

    express 中使用 res.write 写数据,nginx 配置的代理。
    请求 URL 为:curl -XPOST -o - -s -T - url
    本地测试是可以看到服务端写的数据的,但是 nginx 代理后就不可以了,而且服务端执行 res.end()后客户端也没有断开连接结束 curl 命令,本地测试是可以的。

    1 replies    2019-06-18 08:29:14 +08:00
    lollipop43
        1
    lollipop43  
       Jun 18, 2019
    我碰到的很多问题都因为本地和服务器的环境配置不一样,试试检查下数据库什么的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2058 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:13 · PVG 00:13 · LAX 09:13 · JFK 12:13
    ♥ Do have faith in what you're doing.