Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to load actor document, html returned for any Accept: request #106
I've made a request for the ActivityPub actor document (discovered in one of the current issues)
Using this HTTP Accept header:
This header works for every AP/ActivityStreams installation I've tested against previously. The second variant is for sites that don't have a space between the mimetype and the profile; which I've found can be problematic.
I've tried several variations and in all cases a text/html document is returned, even though that is not permitted by the Accept header. (Should return 406 if I recall correctly). But what I would really like to see returned is an ActivityPub actor document and not certain how to do that given that the Accept header isn't being honoured. It isn't application specific (I'm using hubzilla and red); but also occurs if one uses this Accept header in a browser using the browser developer tools. I've also added application/json to the header and see nothing different. I've also tried without the trailing slash in the URL.
How can I obtain an ActivityPub actor document?
We are matching against
Thanks. application/activity+json is legal for ActivityStreams but not ActivityPub, which required an Accept type of
last time I looked (7-8 months ago). This isn't a show-stopper today but may be an issue going forward, as I'm working on a suite of products/projects which are ActivityStreams compliant but not ActivityPub compliant and will provide completely different content if you choose the wrong one first.