doushuo8677 2018-07-28 02:24
浏览 76

Revel App可在浏览器中访问,通过curl进入终端时返回502

The Revel site I'm working on works fine in the browser, but when hit it in the terminal via a curl, it returns a 502. Checking the error log for Revel, it throws a long panic error when hit by curl, starting like...

{"caller":"panic.go:35","error":"runtime error: index out of range","lvl":"eror","module":"revel","msg":"PanicFilter: Caught panic, unable to determine stack location","section":"util","stack":"goroutine 265...

When I access the site via the browser, no new error appears. Nginx is throwing the following error...

22393#22393: *5098 upstream prematurely closed connection while reading response header from upstream

My nginx config looks essentially like...

server {

    server_name name-of-site.com;

    location / {
            proxy_pass http://localhost:9000;
    }
}

At first I thought this was an issue with my Nginx config, but seeing I'm getting an error thrown by Go/Revel when I hit the site via curl request, I'm wondering if it's an issue with Go or Revel? Anyone had similar issues when getting a Go site running through Nginx? Thanks in advance, any direction would be useful.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#网络安全#的问题:求ensp的网络安全,不要步骤要完成版文件
    • ¥15 可否在不同线程中调用封装数据库操作的类
    • ¥20 使用Photon PUN2解决游戏得分同步的问题
    • ¥15 微带串馈天线阵列每个阵元宽度计算
    • ¥15 keil的map文件中Image component sizes各项意思
    • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 Vue3 大型图片数据拖动排序