Code Monkey home page Code Monkey logo

Comments (5)

pandolia avatar pandolia commented on August 31, 2024

主要是获取好友 qq 那里会返回 502 错误,应该是腾讯服务器的限制,以前都没这个问题。暂时可以把第 552 行这里的 nTO < 9 改大一点,多试几次。

        if nCE < 5 and nTO < 9 and nUE < 3 and nDE <= repeatOnDeny:
            DEBUG('第%d次请求“%s”时出现“%s”, html=%s',
                  nCE+nTO+nUE+nDE, url, errorInfo, repr(html))
        else:
            CRITICAL('第%d次请求“%s”时出现“%s”,终止 QQBot',
                     nCE+nTO+nUE+nDE, url, errorInfo)
            raise RequestError # (SystemExit)

如果还是不行,那就在上面的 else 下面加:

            if url.startswith('http://s.web2.qq.com/api/get_friend_uin2'):
                return {'account': -1}

先返回一个无效qq号码。

暂时先这样解决。

from qqbot.

k3rw1n avatar k3rw1n commented on August 31, 2024

from qqbot.

pandolia avatar pandolia commented on August 31, 2024

好。

from qqbot.

k3rw1n avatar k3rw1n commented on August 31, 2024

问题中的问题已在最新的代码中得到修复,感谢原作者pandolia,他的代码考虑的更为周到,我很喜欢这个项目,很荣幸可以被merge

from qqbot.

pandolia avatar pandolia commented on August 31, 2024

不客气。也感谢您的帮助!

from qqbot.

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.