Open jorijn opened 1 week ago
I've seen something similar to this before, but never got to the bottom of it fully. I'd say this is most likely an issue with configuration, networking, or with your split domain setup, not anything to do with the particular messages you're sending. Could you describe how you configured your split domain setup? Did you change the account domain or host or protocol values after already running for a little while by any chance?
I have set up an entirely new test instance on test.jorijn.com, using the NGINX configuration provided in the documentation. The new test setup doesn't have a split domain setup.
The following logs appear when I send out a message using the client API.
timestamp="09/11/2024 08:07:09.829" func=workers.(*Processor).ProcessFromClientAPI level=INFO activityType=Create objectType=Note fromAccount=test msg="processing from client API"
timestamp="09/11/2024 08:07:09.832" func=server.init.func1.Logger.13.1 level=INFO latency="7.617851ms" userAgent="Symfony HttpClient (Curl)" method=POST statusCode=200 path=/api/v1/statuses clientIP=172.18.0.1 requestID=g22by3wk04001er5a7s0 msg="OK: wrote 1.10kiB"
timestamp="09/11/2024 08:07:09.847" func=federation.(*federatingActor).Send level=INFO msg="send activity Create via outbox https://test.jorijn.com/users/test/outbox"
timestamp="09/11/2024 08:07:09.849" func=workers.(*clientAPI).CreateStatus level=ERROR msg="error federating status: CreateStatus: error sending Create activity via outbox https://test.jorijn.com/users/test/outbox: https://test.jorijn.com/users/test/followers resp was not ActivityPub media type: "
NGINX logging from that time:
REDACTED - - [09/Nov/2024:07:07:09 +0000] "POST /api/v1/statuses HTTP/2.0" 200 1129 "-" "Symfony HttpClient (Curl)"
To answer all the questions:
I'd be more than happy to submit one of these toots to any of your test instances if you provide me with an account, so we can rule out infrastructure.
I have since been tinkering some more, and it started working all of a sudden. I don't have any real clue what changed. The setup didn't change, the content didn't change.. Sorry I can't be of more help. If you do need me to check on anything, let me know.
Ah, so weird! I wish I knew where this bug came from 🤔 But nevermind, it's working now, investigation can come later. Is it alright with you if I rename the issue to more specifically address the "resp was not ActivityPub media type" error message?
Yes, and feel free to close it. :)
Describe the bug with a clear and concise description of what the bug is.
I made custom API client code for a bot I'm writing. It's supposed to generate small toots about news articles, based off a RSS feed.
The GotoSocial account is fine, but once I start sending statuses, I'll see messages like this in the logs:
For full context, this is the HTTP request:
Request
Content that's being sent (formatted):
Response
The status is posted, and is visible on GotoSocial: https://social.jorijn.com/@loki/statuses/01JC6WB1YDSBAYTC5G5PC4P7FY
However, it won't federate. Update actions to the profile, Status deletes etc. all show the same error.
I haven't been able to inspect the /users/loki/followers path since it requires request signing.
Any help is appreciated.
What's your GoToSocial Version?
v0.17.3
GoToSocial Arch
amd64 Docker
What happened?
No response
What you expected to happen?
No response
How to reproduce it?
No response
Anything else we need to know?
No response