Giter VIP home page Giter VIP logo

Comments (5)

gabek avatar gabek commented on September 22, 2024

Could you point out the specific error with Owncast? Upon looking at that screenshot it's not clear what exactly you're talking about, I'm just seeing Ruby errors.

from owncast.

mahmed2000 avatar mahmed2000 commented on September 22, 2024

Owncast didn't send a valid message it looks like? The object key is missing here and mastodon can't index the value since its nil. Owncast's apub code definitely tries to add it however, so some lacking error checking on owncast's end I think.

from owncast.

gabek avatar gabek commented on September 22, 2024

How are you able to see the full payload? I'm getting a 404 when I try to look at https://stream.labr.online/federation/OL5KD9yIg. Unless I made a typo?

LABR LIVE
live dj sets, soulful house music, eclectic jams

#music #dj #mashups #house #dance #rock #LABR #housemusic #soulful #footwork #jungle #juke #fediwave #freeform #mixes #80s #livesets #djsets

from owncast.

mahmed2000 avatar mahmed2000 commented on September 22, 2024

"{"@context":"https://www.w3.org/ns/activitystreams\",\"actor\":\"https://stream.labr.online/federation/user/video\",\"id\":\"https://stream.labr.online/federation/OL5KD9yIg\",\"type\":\"Accept\"}"

I'm going off of mastodon's code. It errors here:
https://github.com/mastodon/mastodon/blob/929b9fdaff1e6d4223efd8f00bd0b53fae1c7ce1/app/lib/activitypub/activity/accept.rb#L8

@object is set here:
https://github.com/mastodon/mastodon/blob/929b9fdaff1e6d4223efd8f00bd0b53fae1c7ce1/app/lib/activitypub/activity.rb#L14

Takes the json, indexes it for the object key which gives nil. Then tries to index the nil for type but can't since nil can't be indexed.

The object key needs to be at the same level as type and actor. I don't see any code that would work with an id at that level, but there might be? Would need working examples to check if they have the object property or if mastodon works with this syntax and this is an edge case.

Owncast constructs an object here:

object := streams.NewActivityStreamsObjectProperty()

It should match up with mastodon since it tries to append an object specifically of type "Follow" in the next line

GitHub
Your self-hosted, globally interconnected microblogging community - mastodon/mastodon
GitHub
Your self-hosted, globally interconnected microblogging community - mastodon/mastodon

from owncast.

gabek avatar gabek commented on September 22, 2024

I just don't know if that message is showing the entire payload or not. It's difficult to know exactly what was sent to that server without being able to see the entire thing. If it said it was explicitly missing an object, or it was looking for a specific key that would be helpful, but it's not giving anything to work with. All we have is a truncated message and no example of the raw message it's acting upon.

If we were confident that the message shows the entire payload, then yes, object is missing, but I don't know what I'm looking at in this case.

from owncast.

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.