Giter VIP home page Giter VIP logo

Comments (8)

imroc avatar imroc commented on June 15, 2024

检查下 err 是否为 nil,也开下 DevMode看看实际返回的跟rkBack结构是否一致

from req.

supersndqd avatar supersndqd commented on June 15, 2024

err不为nil,err的判断里面我加了continue,后面代码继续在跑,而且statuscode是200,也是成功,就是resp.body是空的
rkBack是struct的默认值,resp判断是nil
DevMode 同样无法同样无法看到resp的内容

from req.

supersndqd avatar supersndqd commented on June 15, 2024

我开始用body一个int值作判断的,0就是成功,跑了好多天了,才发现这个问题

from req.

imroc avatar imroc commented on June 15, 2024

判断 err 是基础操作,如果不为 nil 一定要报出来方便排查

from req.

supersndqd avatar supersndqd commented on June 15, 2024

说错,err为nil
我做了判断
if err != nil {
fmt.Println("reg", err)
time.Sleep(3 * time.Second)
registerch <- 1
continue
}
程序继续往下执行了

from req.

supersndqd avatar supersndqd commented on June 15, 2024

digest两次连接,我感觉resp保留的是第一次401的空body,想看源代码,几次跳转.放弃,跟大佬求助

from req.

imroc avatar imroc commented on June 15, 2024

digest两次连接,我感觉resp保留的是第一次401的空body,想看源代码,几次跳转.放弃,跟大佬求助

能否给可复现的代码,如不方便公开可发我邮箱 [email protected]

from req.

supersndqd avatar supersndqd commented on June 15, 2024

qq邮箱,已经发送

from req.

Related Issues (20)

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.