GithubHelp home page GithubHelp logo

Comments (4)

mumixam avatar mumixam commented on September 28, 2024

How often this does happen? Is it only is certain chats?

from weechat-twitch.

hamza-shezad avatar hamza-shezad commented on September 28, 2024

I get this error eventually in the weechat buffer. But I get a twitch.py error in all chats after second reconnection:
I get a token from your website and set the relevant settings and it works fine. After reconnecting I eventually get these errors.

Using version 0.9 installed from /scripts

from weechat-twitch.

mumixam avatar mumixam commented on September 28, 2024

Sorry i can't reproduce issue. Can you check /server raw and paste the raw input that results in the error?

from weechat-twitch.

not-mynumbness avatar not-mynumbness commented on September 28, 2024

I get an error with /whois
The raw server says

22:31:48 <-- twitch │ PING irc.chat.twitch.tv
               │22:31:48 --> twitch │ :tmi.twitch.tv PONG tmi.twitch.tv :irc.chat.twitch.tv
               │22:32:01 <== twitch │ (message dropped)

22:34:30  twitch =!= │ twitch.py: error communicating with twitch api
               │22:34:30 weechat     │ python: stdout/stderr (twitch): Traceback (most recent call last):
               │22:34:30 weechat     │ python: stdout/stderr (twitch):   File
               │                     │ "/home/deffn/.local/share/weechat/python/autoload/twitch.py", line 266, in
               │                     │ channel_api
               │22:34:30 weechat     │ python: stdout/stderr (twitch):     jsonDict = json.loads(stdout.strip())
               │22:34:30 weechat     │ python: stdout/stderr (twitch):                ^^^^^^^^^^^^^^^^^^^^^^^^^^
               │22:34:30 weechat     │ python: stdout/stderr (twitch):   File
               │                     │ "/usr/lib/python3.11/json/__init__.py", line 346, in loads
               │22:34:30 weechat     │ python: stdout/stderr (twitch):     return _default_decoder.decode(s)
               │22:34:30 weechat     │ python: stdout/stderr (twitch):            ^^^^^^^^^^^^^^^^^^^^^^^^^^
               │22:34:30 weechat     │ python: stdout/stderr (twitch):   File
               │                     │ "/usr/lib/python3.11/json/decoder.py", line 337, in decode
               │22:34:30 weechat     │ python: stdout/stderr (twitch):     obj, end = self.raw_decode(s, idx=_w(s,
               │                     │ 0).end())
               │22:34:30 weechat     │ python: stdout/stderr (twitch):
               │                     │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               │22:34:30 weechat     │ python: stdout/stderr (twitch):   File
               │                     │ "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
               │22:34:30 weechat     │ python: stdout/stderr (twitch):     raise JSONDecodeError("Expecting value",
               │                     │ s, err.value) from None
               │22:34:30 weechat     │ python: stdout/stderr (twitch): json.decoder.JSONDecodeError: Expecting
               │                     │ value: line 1 column 1 (char 0)
               │22:34:30 weechat     │ python: stdout/stderr (twitch): During handling of the above exception,
               │                     │ another exception occurred:
               │22:34:30 weechat     │ python: stdout/stderr (twitch): Traceback (most recent call last):
               │22:34:30 weechat     │ python: stdout/stderr (twitch):   File
               │                     │ "/home/deffn/.local/share/weechat/python/autoload/twitch.py", line 270, in
               │                     │ channel_api
               │22:34:30 weechat     │ python: stdout/stderr (twitch):
               │                     │ weechat.prnt(data['buffer'],'%stwitch.py: return code: %s' %
               │                     │ (weechat.prefix('error'),rc))
               │22:34:30 weechat     │ python: stdout/stderr (twitch):                  ~~~~^^^^^^^^^^
               │22:34:30 weechat     │ python: stdout/stderr (twitch): TypeError: string indices must be integers,
               │                     │ not 'str'
               │22:34:30 weechat =!= │ python: error in function "channel_api"

from weechat-twitch.

Related Issues (16)

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.