Giter Club home page Giter Club logo

Comments (2)

trevorhobenshield avatar trevorhobenshield commented on June 8, 2024

Can't replicate this issue, replies are still working as expected.

from twitter-api-client.

yibudak avatar yibudak commented on June 8, 2024

It seems my issue was closed faster than a speeding bullet. Interesting. Here's another one for you to swiftly dismiss:

[success] xxx login success
>>> account.reply('test', tweet_id=1660539698320637952)
2023-05-22 11:07:53,445.445 DEBUG: [403]
2023-05-22 11:07:53,445.445 DEBUG: https://twitter.com/i/api/graphql/7TKRKCPuAGsmYde0CudbVg/CreateTweet
2023-05-22 11:07:53,445.445 DEBUG: 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/yibudak/deneme/venv/lib/python3.11/site-packages/twitter/account.py", line 201, in reply
    return self.gql('POST', Operation.CreateTweet, variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yibudak/deneme/venv/lib/python3.11/site-packages/twitter/account.py", line 58, in gql
    save_data(r.json(), op, self.session.cookies.get('username', '_'))
              ^^^^^^^^
  File "/home/yibudak/deneme/venv/lib/python3.11/site-packages/httpx/_models.py", line 756, in json
    return jsonlib.loads(self.text, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
>>> 

from twitter-api-client.

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.