# Web API error during post

**URL:** <https://community.thunkable.com/t/web-api-error-during-post/1516393>\
**Category:** Questions about Thunkable X\
**Created:** [September 20, 2021, 4:31pm UTC](https://community.thunkable.com/t/web-api-error-during-post/1516393 "2021-09-20T16:31:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [September 20, 2021, 4:31pm UTC](https://community.thunkable.com/t/web-api-error-during-post/1516393/1 "2021-09-20T16:31:22Z")

</div>

Hello,  
I just built follow WebAPI that retreive a Token and then make a post … obviously I already tested it on Postman and works fine.  
Here the error I got; it’s very strange, I don’t understand it.  
Please anyone already know it?  
Many thanks  
Andrea

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/5/d5d776a7613f8438ba1a2568592e6439798c9a48.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/2/a235fffde11f62817157b25a4c75f74ba4dd17bb.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 20, 2021, 4:39pm UTC](https://community.thunkable.com/t/web-api-error-during-post/1516393/2 "2021-09-20T16:39:37Z")

</div>

I assume you’re seeing that error with the **first** POST call. But your screenshot doesn’t include any of the header information for that call so there’s no way I can figure out why that error is happening.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 20, 2021, 5:02pm UTC](https://community.thunkable.com/t/web-api-error-during-post/1516393/3 "2021-09-20T17:02:48Z")

</div>

This is the description of the error

**6.5.13**. 415 Unsupported Media Type  
The 415 (Unsupported Media Type) status code indicates that the origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource. The format problem might be due to the request’s indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly.

**Which is saying exactly what @tatiang has mentioned**.

---

<div class="post-metadata">

**Author:** ![Andrea\_Marchisio](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Andrea\_Marchisio](https://community.thunkable.com/u/Andrea_Marchisio)\
**Post date:** [September 20, 2021, 8:22pm UTC](https://community.thunkable.com/t/web-api-error-during-post/1516393/4 "2021-09-20T20:22:01Z")

</div>

wow solved many thanks @muneer .  
I didn’t set “Content-Type” - “application/json” headers because in postman there weren’t and it worked anyway.  
Thanks again.  
Andrea

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:15pm UTC](https://community.thunkable.com/t/web-api-error-during-post/1516393/5 "2024-11-08T13:15:09Z")

</div>


