Salta al contenuto

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

If I wanted to mess around with ActivityPub c2s clients what's a server I can host that has support for it?

General Discussion
25 6 2

Gli ultimi otto messaggi ricevuti dalla Federazione
  • nikclayton@mastodon.social agreed.

    It's one thing for a server with a newer API version to be backwards compatible with a request from an older version, but it's impossible to predict the future and handle requests from a newer API client.

    Bouncing an error back would be the safest choice.

    cc grishka@mastodon.social

    per saperne di più

  • mariusor@metalhead.club Can you use ActivityPub.academy? There is a logger built in so you can see the activities coming and going. It might help you debug why the ONI activities aren't being processed.

    per saperne di più

  • @grishka Return an error that tells the client it's used an unsupported version.

    By definition, the server does not know the semantics of the call the client made, so trying to guess and return something in the hope it's correct takes us out of the realm of engineering and into clairvoyance.

    per saperne di più

  • @mro but what if there are incompatible changes that the app doesn't expect? Like some object having a different format, or some method behaving differently

    per saperne di più

  • Hi @grishka,
    using highest sounds like best effort and makes most sense to me.

    per saperne di più

  • @tom a quick check list for you:

    1. Check if the actor is publicly accessible from the internet.

    2. Check if it has a RSA private/public key.

    3. Check that if you have a proxy in front of ONI it doesn't mangle Accept/Vary/Content-Type headers.

    4. Check that if you have a proxy the `/.well-known/webfinger` route is handled by ONI. (your proxy should forward all routes to ONI directly as a start)

    per saperne di più

  • @tom I understand.

    Indeed in the past two/three weeks I must have deployed something (or Mastodon made some changes) that regular objects posted by ONI aren't findable any more. The problem is that I don't have a development setup for mastodon on which to test what the problem is. :(

    However the actors should still be available.

    per saperne di più

  • On a fediverse server with a versioned client API, what would you expect to happen if an API call is made with a version number higher than what the server supports? Should it return an error? Should it take it to mean its highest supported version? Something else?

    The API isn't RESTful, the version number is global for all methods (endpoints) and has the format "major.minor".

    per saperne di più