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.

man, i am getting the same error and i have no external URLs.

here is what i am trying to post:

in my test system, everything works fine. i can simulate a SCA test using the test credit card numbers in the documentation. the new modal window pops up, i enter the 123456 and i’m good.

on the live system, the developer console lists the following error:

Uncaught (in promise) ThreeDSMethodTimeoutError: Three ds method timed out

the SCA modal comes up blank for a moment and then processing continues.

my sdk version is 20241120, and for any number of reasons i am not able to use a later version of the sdk.

what could be the cause of this problem and is there a solution?

thanks in advance.