• Resolved ncottech

    (@ncottech)


    I’m trying to set up the plugin in my self hosted WordPress server, but whenever I try to follow my blog’s user, I get this:

    422 Mastodon::HostValidationError on https://plot88.uk/.well-known/webfinger?resource=acct:[email protected]

    If I visit that URL, I get JSON back, and if I use webfinger.net, it also shows me the JSON data.

    My user page https://plot88.uk/author/james/ just takes me to a regular wordpress page containing all my posts, is that what’s supposed to happen? I’m having problems figuring out what to even look at to debug this.

    The wordpress server is serving HTTP using nginx, behind an nginx reverse proxy that’s using Let’s Encrypt for an SSL certificate.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matthias Pfefferle

    (@pfefferle)

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    I had a look at your setup and everything looks like expected, so it seems to be something of your NGINX/SSL/Reverse Proxy setup, that mastodon does not like. I guess. To proof it, I followed you on pixelfed.social without problems (you should see my pixelfed in your followers list now).

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    Thread Starter ncottech

    (@ncottech)

    Yeah I can’t figure it out. I suspect there’s some voodoo required in my nginx setup. I bet if my webserver was directly accessible, it’d work fine. Especially if you can follow it from other fedi clients.

    Ah well, I’ll close this, thanks for trying 🙂

    Sorry future people, I couldn’t fix this and didn’t know why it was broken. It’s probably something obscure in my setup.

    Thread Starter ncottech

    (@ncottech)

    I have “fixed” it!

    There was a patch made to Mastodon way back when that means you can’t follow people on servers with private IP addresses.

    So if you have a mastodon server and other ActivityPub servers on the same public IP address and you use reverse proxies to route requests to internal IP addresses it’ll fail.

    And if you understand this, you understand either how to fix it (turn on loopback NAT on your router) or will know it’s impossible to fix on your setup depending on your router.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘422 Mastodon::HostValidationError’ is closed to new replies.