# API Connector Error: Sorry, we ran into a temporary bug and can't complete your request

**URL:** <https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409>\
**Category:** APIs\
**Created:** [May 22, 2024, 12:24am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409 "2024-05-22T00:24:48Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 22, 2024, 12:24am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/1 "2024-05-22T00:24:48Z")

</div>

I’m trying to use this API but I am getting an error, I tested it on Postman and it’s working without a problem. Now, I’m trying to implement it on Bubble.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/9/a94d6625b99e28af0a63df52e358388bba4804cc.png)

I am getting this error, don’t know what’s wrong with my setup

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/f/df58841deae7f8d9413e89bcc51dd84957c878dd.png)

This was the response in Network Tab

```auto
{
    "message": "The requested event (API Connector - Initialize Call clicked) is archived(deleted)"
}

```

I only followed this

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/e/8e55d61518cb772c67a429efe3359b98263348c0.png)

---

<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:** [May 22, 2024, 1:39am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/2 "2024-05-22T01:39:16Z")

</div>

Can you share settings in postman? because what you have in Bubble is json, but documentation show url parameters

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 22, 2024, 1:45am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/3 "2024-05-22T01:45:08Z")

</div>

Thanks for the reply,

This is the header

![image](https://us1.discourse-cdn.com/bubble/original/3X/c/6/c61ec5581c730234154b3d80625a6a3cfe5589af.png)

Here’s the body, I am using Password Based Authentication

![image](https://us1.discourse-cdn.com/bubble/original/3X/c/f/cf3e349d94946564a813dc3326d489b1f4d47850.png)

The response should look like this

![image](https://us1.discourse-cdn.com/bubble/original/3X/5/a/5afadecda725706a38f6b38d8d8a2d967eaec201.png)

---

<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:** [May 22, 2024, 2:08am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/4 "2024-05-22T02:08:42Z")

</div>

Pretty sure that postman overwrite your content-type header because you have selected x-www-form-urlencoded (or you have twice this header… scroll up to see the one added by default by Postman). Delete your body, and instead add parameters (two, one usr and one pwd) and replace content-type header value by: application/x-www-form-urlencoded

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 22, 2024, 2:24am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/5 "2024-05-22T02:24:53Z")

</div>

I already modify the postman like you said and still working but how about the settings in Bubble API Connector? I did the same settings but still not working

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/2/324d30c43e52b93c5054fb5d91ee57b07eff4794.png)

---

<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:** [May 22, 2024, 2:26am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/7 "2024-05-22T02:26:43Z")

</div>

Change form-data for json or raw. Actually form-data probably also overwrite your content type

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 22, 2024, 2:43am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/8 "2024-05-22T02:43:21Z")

</div>

Still not working

I look up in network tab and I’m getting this

> [@yamada.shoji99](#):
>
> ```auto
> {
> "message": "The requested event (API Connector - Initialize Call clicked) is archived(deleted)"
> }
> 
> ```

I am not really familiar with API, but base on my research Password Based Authentication is using session data to authenticate the call but the problem is API Connector does not have this ability to handle Session Data. Not sure about this but this is what I know.

---

<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:** [May 22, 2024, 2:46am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/9 "2024-05-22T02:46:07Z")

</div>

Can you share last setting? You could try to activate querystring checkbox  
Link to API doc?  
However, the errormyou get is strange. On which Bubble version are you? Maybe you should start from scratch

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 22, 2024, 2:55am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/10 "2024-05-22T02:55:06Z")

</div>

The API Connector settings

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/4/a46fd78794544019a3ac04740d6a89691a787778.png)

This is the doc

[https://frappeframework.com/docs/user/en/api/rest](https://frappeframework.com/docs/user/en/api/rest)

I did not use the Token Based Authentication since I don’t have the permission to generate API Keys so instead I am using Password Based Authentication

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 22, 2024, 2:55am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/11 "2024-05-22T02:55:53Z")

</div>

> [@Jici](#):
>
> However, the errormyou get is strange. On which Bubble version are you? Maybe you should start from scratch

I am using the latest version and this is my first time to encounter this error

---

<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:** [May 22, 2024, 2:28pm UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/12 "2024-05-22T14:28:32Z")

</div>

According to doc, the correct settings is to use json. While in postman, seem to use url form encoded. Both could work, but documentation show JSON format  
Checked this morning and I get the same error you got but this is not related to the error you have to connect this service. Don’t you get any other error in API Connector? I don’t have access to a server for that so it’s a little bit hard to help and do some testing.

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 24, 2024, 3:27am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/13 "2024-05-24T03:27:57Z")

</div>

Sorry for the late reply, I don’t get any error. The other API are working tho.

> [@Jici](#):
>
> I don’t have access to a server for that so it’s a little bit hard to help and do some testing.

I can’t provide you the credentials since this is confidential.

What do you think is the problem? I will try to do another test later.

---

<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:** [May 24, 2024, 11:43am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/14 "2024-05-24T11:43:36Z")

</div>

Send request to [requestbin.com](http://requestbin.com) endpoint from postman and after do the same from Bubble. Compare both. You could post it here and it may be possible to help you

---

<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:** [May 24, 2024, 1:42pm UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/15 "2024-05-24T13:42:13Z")

</div>

Just found that Bubble doesn’t seem to overwritte header anymore if you use JSON like it was before (even if it should…) So this may explain your issue. But using requestbin will help a lot to compare both calls and fix this

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 25, 2024, 5:23am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/16 "2024-05-25T05:23:37Z")

</div>

So this is what I’m getting in requestbin

POSTMAN

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/0/90357e749b56ac50cc2100b4d94321697a53fd54.png)

BUBBLE

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/4/7459c7322781c759213e194ce9c6a9bcd4ebfdc0.png)

I also notice that I’m getting 422 Status in Network Tab but Bubble doesn’t provide this error in frontend.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/8/383feb90bca2bb148a59851ccd4e2686a7abf5d6.png)

In Postman, I’m getting this CURL

![image](https://us1.discourse-cdn.com/bubble/original/3X/4/c/4c4184ecad8fe638d048ebf485aaf363d5f367c6.png)

Example of CURL in Docs

[https://frappeframework.com/docs/user/en/guides/integration/rest\_api/simple\_authentication](https://frappeframework.com/docs/user/en/guides/integration/rest_api/simple_authentication)

```auto
curl -X POST https://{your frappe instance}/api/method/login \
     -H 'Content-Type: application/json' \
     -H 'Accept: application/json' \
     -d '{"usr":"Administrator","pwd":"admin"}'

```

Thank you very much for helping, I’m trying to practice myself working with 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:** [May 26, 2024, 6:42pm UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/17 "2024-05-26T18:42:34Z")

</div>

So according to screenshot, body is not sent the same way from Bubble vs Postman. Can you share your Bubble settings actually?

You should try this setting in Bubble:

 ![screenshot-bubble.io-2024.05.26-14_41_54](https://us1.discourse-cdn.com/bubble/original/3X/b/1/b12ea45aec471d2898f753d75705cd69c1e64b93.png)

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [May 27, 2024, 2:21am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/18 "2024-05-27T02:21:50Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/7/a/7a568ae76bd9ffc393d8aa6183dcce8e2ed24d01.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/6/962d7b4c0e448e0d138fa15157ef395251c51fb9.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/9/79201741c669e481358b066aab3a6d25acf51225.png)

I’ve already tried different settings and still can’t make it work. I guess my last resort is to DM you the credentials then probably test it in your end, if that’s fine with you?

---

<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:** [May 27, 2024, 2:24am UTC](https://forum.bubble.io/t/api-connector-error-sorry-we-ran-into-a-temporary-bug-and-cant-complete-your-request/323409/20 "2024-05-27T02:24:40Z")

</div>

You can send me DM no problem
