# HTTP 422 Error with Postmark

**URL:** <https://forum.bubble.io/t/http-422-error-with-postmark/324803>\
**Category:** APIs\
**Created:** [May 31, 2024, 11:40am UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803 "2024-05-31T11:40:17Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 11:40am UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/1 "2024-05-31T11:40:17Z")

</div>

Hi All,

I have been struggling with the Postmark API giving me a Http 422 Error when I try to use the API in a backend workflow, I came across a not from way back in November of folks expressing similar frustrations and am wondering if this is something that continues to plague people.

@Alter345 @AdamBFM @gf_wolfer did you guys find a solution to your problems in post [Postmark problem API call , break my calls](https://forum.bubble.io/t/postmark-problem-api-call-break-my-calls/293668)

This is driving me crazy so if any one can shed light on this, I would be very grateful.

Cheers

KH

---

<div class="post-metadata">

**Author:** ![Alter345](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Alter345](https://forum.bubble.io/u/Alter345)\
**Post date:** [May 31, 2024, 11:51am UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/2 "2024-05-31T11:51:50Z")

</div>

Hi Kevin, yes, the solution is that you JSON must be perfectly correct … do you have the json extract to show us ?

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 12:03pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/3 "2024-05-31T12:03:35Z")

</div>

Hi @Alter345

Thanks for your response!!  
I have initialized the API call without any problems.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/4/54843c48eddd137ea43a4203884b992888a00f28.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/8/f8fbf431c5dda4a7f9b1bca8d83ad2521ef6a906.png)

I run the API in the backend with overrides on privacy rules

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/0/50e73b533b4b3124efa9af6dd0c2728431b98a9c.png)  
I have json safe on all data that gets fed into the api.

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 12:07pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/4 "2024-05-31T12:07:10Z")

</div>

what I do not show here is a the concatenation of the URL - I take a base parameterized URL and concatenate the email of the recipient on the end.

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 12:11pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/5 "2024-05-31T12:11:54Z")

</div>

I have added the concatenation back in and json safe’d it . I still get the error.

Workflow error - The service Postmark - Send - Signed Up But Not Subscribed just returned an error (HTTP 422). Please consult their documentation to ensure your call is setup properly. Raw error:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/f/0fa7a13ba8777f4826288f2fd970c6b4a2c3aa64.png)  
{"ErrorCode":402,"Message":"Invalid JSON"}

---

<div class="post-metadata">

**Author:** ![Alter345](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Alter345](https://forum.bubble.io/u/Alter345)\
**Post date:** [May 31, 2024, 12:20pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/6 "2024-05-31T12:20:08Z")

</div>

If a field is empty, it will broke your json  
see attached how i set it upt using “if empty” can you try this ?  
also, what i can advise is to get the json send to postmark support to ask them what is wrong  
then use conditions as attached  
hope that helps

 ![Screenshot 2024-05-31 at 14.19.07](https://us1.discourse-cdn.com/bubble/original/3X/8/7/874d8c5b4ba9c0276b0a0c98e8ace7bb5442b420.png)

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 12:40pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/7 "2024-05-31T12:40:15Z")

</div>

thanks. I don’t think that I have any fields that are empty but I will try this!

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 12:48pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/8 "2024-05-31T12:48:56Z")

</div>

I am unfamiliar with putting "not specified " as a delimiter. Is this a predefined value in Bubble. I don’t seem to have anything that equates to “non reseigne” in the English version of Bubble.

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 12:59pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/9 "2024-05-31T12:59:42Z")

</div>

I will assume that equates to leaving the delimiter blank. Let me know if I am wrong on this. Cheers

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 1:09pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/10 "2024-05-31T13:09:06Z")

</div>

@Alter345 can you explain what “non renseigne” means in this context?

---

<div class="post-metadata">

**Author:** ![Alter345](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Alter345](https://forum.bubble.io/u/Alter345)\
**Post date:** [May 31, 2024, 4:32pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/11 "2024-05-31T16:32:44Z")

</div>

Its just in case the field is empty, we still add something on the json  
did you find a solution ?

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [May 31, 2024, 5:49pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/12 "2024-05-31T17:49:32Z")

</div>

Hi @Alter345 thanks for followingup. I still have no solution as I had to take a break - I had been up all night on this and crashed. … I still do not understand what “non reseigne” translates to in English. Is it “null” or is that what shows up when you leave it blank. ChatGPT seems to say blank but Bubble does not write “blank” when I leave the delimter blank in the English verion. at least not for mine. Did you write that on top of the image to provide clarity?

---

<div class="post-metadata">

**Author:** ![Alter345](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Alter345](https://forum.bubble.io/u/Alter345)\
**Post date:** [May 31, 2024, 7:08pm UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/13 "2024-05-31T19:08:29Z")

</div>

@kevin.hunt

I just reopened my computer to answer you since I’ve been in the same situation (even though it’s Friday and I’ve had a couple of beers 😉 ;)).

Regarding the term “non renseigné,” it’s simply a French phrase meaning “not filled in.” It allows me to have something in the JSON in case the field is empty. Because, again, if the field is sent empty, it breaks the JSON.

Another piece of advice is to use RequestBin (see here: [How to see json being sent through API connector](https://forum.bubble.io/t/how-to-see-json-being-sent-through-api-connector/255353)).

You can set it up, for example, with this: [RequestBin — A modern request bin to collect, inspect and debug HTTP requests and webhooks - Pipedream](https://pipedream.com/requestbin). The basic idea is to change the URL where you send the call. By doing this, you get the exact JSON sent, and then you can check the JSON with tools like this: [https://jsonlint.com/](https://jsonlint.com/) OR (better) send the result to Postmark and ask them why you have an error.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![kevin.hunt](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kevin.hunt](https://forum.bubble.io/u/kevin.hunt)\
**Post date:** [June 3, 2024, 2:25am UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/14 "2024-06-03T02:25:27Z")

</div>

@Alter345 Your suggesting that I use RequestBin was huge! What a fantastic tool!!! I was able to figure out in minutes how to get Bubble and Postmark to work together.

I may be wrong but my impression is that the issue I was facing is a case of battling json corrections between the two platforms. Idiot proofing go awry. Anyway, you were a life saver!

---

<div class="post-metadata">

**Author:** ![Alter345](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Alter345](https://forum.bubble.io/u/Alter345)\
**Post date:** [May 15, 2025, 10:44am UTC](https://forum.bubble.io/t/http-422-error-with-postmark/324803/15 "2025-05-15T10:44:53Z")

</div>

I just saw your message, im glad to help you @kevin.hunt😉
