Issues with http.client.BadStatusLine: ''

▼魔方 西西 提交于 2019-12-24 10:34:48

问题


I have a program that uses Dweepy (a Python module for using the dweet.io service) and it can't run the stream function (listen_for_dweets_from) for some reason.

Code:

    collabIncomingThread = threading.Thread(None, self.listenForCollabCommands, daemon=True)
    collabIncomingThread.start()

    def listenForCollabCommands(self):
        print("Getting dweets...")
        for dweet in dweepy.listen_for_dweets_from('reggie-next-codes-' + shareid):
            print(dweet)
            contentcourse = dweet['content']
            code = contentcourse['code']
            #sender = contentcourse['player']
            print("IN: " + code)
            #if sender != myname:
            mainWindow.HandleCollaborationLang(str(code))

When this runs, it eventually prints out this stuff: http://pastebin.com/MJdRriyH (the paste is infinite, I couldn't format it all for SO)

I'm pretty sure it has to do with the Threading stuff, but I'm not sure. Does anyone know?

来源:https://stackoverflow.com/questions/29202708/issues-with-http-client-badstatusline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!