I confirmed this with calculating the body checksum on the shell using
openssl dgst -binary -sha256 | od -An -vtx1 | sed 's/[ \n]//g' | sed 'N;s/\n//'
Which will calculate the correct checksum, that the server expected.
A static archive of Markus Tacker's tweets. Follow me on Mastodon: @[email protected].
I confirmed this with calculating the body checksum on the shell using
openssl dgst -binary -sha256 | od -An -vtx1 | sed 's/[ \n]//g' | sed 'N;s/\n//'
Which will calculate the correct checksum, that the server expected.
I found the issue: my query included a variable definition, that was not part of
the mutation, and server side, this variable is removed when calculating the
body hash. So AppSync actually parses the request body and manipulates it before
calculating the hash.