# API Status code 405 - need help

**URL:** <https://forum.bubble.io/t/api-status-code-405-need-help/279671>\
**Category:** APIs\
**Created:** [August 24, 2023, 5:08pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671 "2023-08-24T17:08:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![olek.lukianczuk](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@olek.lukianczuk](https://forum.bubble.io/u/olek.lukianczuk)\
**Post date:** [August 24, 2023, 5:08pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/1 "2023-08-24T17:08:09Z")

</div>

I am getting: “Raw response for the API  
Status code 405  
Method Not Allowed”

Until a while ago everything worked and now once it works and once it doesn’t, and this applies to my other APIs as well. I don’t know what this is due to? I could be wrong, but it seems to me that the HTTP Method, Endpoint URL, Headers or Body Format are all correct (it generally worked before). As my application depends a lot on these APIs I would be very grateful for any suggestions. I am additionally sending pictures.

BTW I use external API if that helps.

![2023-08-24 (9)](https://us1.discourse-cdn.com/bubble/original/3X/8/c/8cd5910f55885ff83ebccb9d12498e3e81e45de6.png)

 ![2023-08-24 (12)](https://us1.discourse-cdn.com/bubble/original/3X/1/f/1f56f170ff3e886249da2759e87e0d469b7dde33.jpeg)  
 ![2023-08-24 (10)](https://us1.discourse-cdn.com/bubble/original/3X/2/3/232c4ff0960ee5daeaff43740e454afc8e485ca6.jpeg)  
 ![2023-08-24 (13)](https://us1.discourse-cdn.com/bubble/original/3X/7/e/7e75655358647a906c867d57606898a8cfd8c62d.jpeg)

---

<div class="post-metadata">

**Author:** ![olek.lukianczuk](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@olek.lukianczuk](https://forum.bubble.io/u/olek.lukianczuk)\
**Post date:** [August 24, 2023, 6:41pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/4 "2023-08-24T18:41:28Z")

</div>

Thank you for any suggestion where the problem may be!

---

<div class="post-metadata">

**Author:** ![sat\_miha](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sat_miha/32/58187_2.png) [@sat\_miha](https://forum.bubble.io/u/sat_miha)\
**Post date:** [August 24, 2023, 6:47pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/5 "2023-08-24T18:47:04Z")

</div>

Is there some API docs? Does the API call works in API test services like Postman?

---

<div class="post-metadata">

**Author:** ![olek.lukianczuk](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@olek.lukianczuk](https://forum.bubble.io/u/olek.lukianczuk)\
**Post date:** [August 24, 2023, 6:50pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/6 "2023-08-24T18:50:02Z")

</div>

Yes there are docs: [Message a Chatbot](https://docs.chatbase.co/docs/message-a-chatbot)  
I don’t know the second question.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [August 24, 2023, 6:56pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/7 "2023-08-24T18:56:00Z")

</div>

Why do you hide the url?  
According to the doc, the POST is the correct method. But we don’t see the url, so we don’t know if you are sending the request to the correct endpoint

---

<div class="post-metadata">

**Author:** ![olek.lukianczuk](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@olek.lukianczuk](https://forum.bubble.io/u/olek.lukianczuk)\
**Post date:** [August 24, 2023, 7:02pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/8 "2023-08-24T19:02:08Z")

</div>

Url seems to be correct. The problem is that this issue appears sometimes. Sometimes I get the proper response and some time later it does not work sending 405 massage. I wonder if this may also depend on the exact prompt I write (because it is trained AI API)?

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [August 24, 2023, 7:05pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/9 "2023-08-24T19:05:36Z")

</div>

According to what you say, the problem seem to come from the API Service provider.  
A) Server error on their side  
B) Return the wrong http error code  
If the problem is sometimes there and sometimes not, try to check your JSON encoding. If you have an error, the server normally should return like 400 or 500 (but normally shoul be 400)

---

<div class="post-metadata">

**Author:** ![olek.lukianczuk](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@olek.lukianczuk](https://forum.bubble.io/u/olek.lukianczuk)\
**Post date:** [August 24, 2023, 7:17pm UTC](https://forum.bubble.io/t/api-status-code-405-need-help/279671/10 "2023-08-24T19:17:52Z")

</div>

thank you for your help!
