小编R.J*_*.J.的帖子

使用 HTTP GET 请求拨打 tcp i/o 超时

遇到一些错误,我一定是忽略了一些东西。我该如何调试这个?断开连接?

我读了以下内容:
golang - Why net.DialTimeout get timeout half the time?
去。在服务器程序 golang 中获取错误 i/o 超时
在 ubuntu 14.04 LTS 中获取大量读取 tcp ip:port i/o 超时
在 Go 源代码中定位“read tcp”错误
偶尔出现“http: proxy error: read tcp: i/ Heroku 上的 o 超时”

此处创建错误: https://github.com/golang/go/blob/b115207baf6c2decc3820ada4574ef4e5ad940ec/src/net/net.go#L179

目标:向 url 发送 Get 请求。
预期结果:以 JSON 格式返回正文。
遇到的问题:I/O 超时

它适用于邮递员
编辑:我添加了修改后的超时...

编辑2:跟踪错误

邮递员请求:

GET /v2/XRP-EUR/candles?interval=1h HTTP/1.1
Host: api.bitvavo.com
Run Code Online (Sandbox Code Playgroud)

邮递员结果(1440 行):

[
    [
        1609632000000,
        "0.17795",
        "0.17795",
        "0.17541",
        "0.17592",
        "199399.874013"
    ],
    [
        1609628400000,
        "0.17937",
        "0.18006",
        "0.17622",
        "0.17852",
        "599402.631894"
    ],
    [ …
Run Code Online (Sandbox Code Playgroud)

go go-http

9
推荐指数
2
解决办法
5万
查看次数

标签 统计

go ×1

go-http ×1