Giter Site home page Giter Site logo

Comments (6)

IBBoard avatar IBBoard commented on August 16, 2024

Is this happening with all tweets, or just some?

Message with type 32 on stream [username]: null isn't a promising start! We could probably do better handling it.

If you're running a custom build, can you make sure that you've passed --buildtype=debug to meson and run it again. You should get all of the JSON for each tweet dumped (so it might get a bit long!). There should also be some lines about POST requests so we know where it was in the process of sending the message to the Twitter API.

from cawbird.

glasserc avatar glasserc commented on August 16, 2024

I tried rerunning meson build with --buildtype=debug before --reconfigure and it printed some output, and then I reran ninja -C build and it printed some output ending ninja: no work to do. Is that correct?

I haven't been exhaustive but I haven't been able to successfully "heart" a tweet, whether a real tweet posted by a friend or a retweet that made its way into my timeline. I have a bunch of output, as before, but as it includes stuff from my Twitter account I'm hesitant to post it here. (I could send it to you privately if you like.) However, I note that when I right-click on the tweet to bring up the four tweet actions, the log ends at Focus widget now: DoubleTapButton 0x561ca4446d40. When I choose the action to take, that's when the rest of the output happens and triggers the crash. I suspect no POST request is happening because when I log in to Twitter's web interface and check "Likes", no tweets newer than Mar 4th are visible.

I can also reproduce the crash by clicking on the tweet to bring it up by itself (TweetListEntry?) and clicking the heart in the lower right corner. In this case, the last line in the log before I click the heart is MainWindow.vala:60: Focus widget now: GtkMenuButton 0x55a5de05e410, and once I click on the heart, the same GtkToggleButton lines happen.

I was concerned about the lines saying Focus widget now: (null) (nil) but I can produce those just by right clicking on a tweet to bring up its menu and then right clicking on it again to bring the contents of the tweet back. In that case I get logs like:

(cawbird:1345142): cawbird-DEBUG: 16:33:24.068: MainWindow.vala:60: Focus widget now: DoubleTapButton 0x564b5c7c0d60
(cawbird:1345142): cawbird-DEBUG: 16:33:25.037: MainWindow.vala:60: Focus widget now: (null) (nil)
(cawbird:1345142): cawbird-DEBUG: 16:33:25.038: MainWindow.vala:60: Focus widget now: TweetListEntry 0x564b5c709300

from cawbird.

IBBoard avatar IBBoard commented on August 16, 2024

ninja: no work to do means that it hasn't recompiled anything. So it either didn't enable debug builds, or it did and you're not getting the output. What does meson configure <build-dir> show? I've got a buildtype debug line.

I've just checked and it seems like we don't do debug for Like/RT. Which is annoying. There must be something bad in the JSON, though. I'll make a quick branch with some extra logging in.

from cawbird.

IBBoard avatar IBBoard commented on August 16, 2024

There, I've added some debugging. If you can build that branch then it might give a bit more info.

The other thing that you can try is running it in gdb:

  • gdb path/to/cawbird
  • run
  • Recreate crash and segfault
  • bt and info locals
    That should tell us exactly where it crashed and what the local variables were.

from cawbird.

glasserc avatar glasserc commented on August 16, 2024

Thanks! The failure seems to have to do with the application credentials I created. From the log:

(cawbird:1454731): cawbird-DEBUG: 16:39:05.364: TweetUtils.vala:356: Liking 1506369197311512583
(cawbird:1454731): cawbird-DEBUG: 16:39:05.475: TweetUtils.vala:371: invoke_async returned
(cawbird:1454731): cawbird-DEBUG: 16:39:05.475: TweetUtils.vala:33: Failed request code: 401
(cawbird:1454731): cawbird-DEBUG: 16:39:05.475: TweetUtils.vala:42: Failed request payload: {"request":"\/1.1\/favorites\/create.json","error":"Read-only application cannot POST."}

Indeed, the token I've been using was generated for a Twitter app that I created some ten years ago and only has read permissions. I guess Twitter must have added authorization at some point, or maybe I was inadvertently using a different Twitter app. Either way this also answers why I can't successfully post from Cawbird any more. Thanks for once again helping me debug an idiosyncratic self-inflicted bug!

from cawbird.

IBBoard avatar IBBoard commented on August 16, 2024

I'll keep this open because we shouldn't crash on that. But yeah, if you're using bespoke keys that are read-only (which they might be for a while until Twitter activate them) then you will be able to retrieve tweets but not like/RT/post 😁

from cawbird.

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.