422 error when I try to make a post

Why am I getting a 422 Error when I try to make a simple ASCII-only post to this forum?

Here is my post: Square Dev Forum Post with 422 Error - Pastebin.com

I’ve tried …

  • removing all special characters
  • cutting the JSON snippet into a separate Pastebin attachment
  • validating the markdown
  • shortening the post

… and nothing helps. Is it because I’m including links to external services?

Figured it out. Turns out your post can only include at most one (1) external URL link.

Anything more than that and it’s bounced as Error 422. Seems like Square should have a better error message around this … I burned 45 mins trying to figure out how to post.

We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slight_smile:

On this topic the replies we make also can’t contain external URLs or you get back a 422 error.

I can think of plenty of reasons you would want to link to an external site:

  • a stack overflow post
  • A GitHub library
  • a JSON response blob from the API

… and all of those can’t exist in comments. That’s pretty silly for a dev site imho.