Stripe API call content type error

Hello everyone,

To put a little bit of context : I’m trying to setup the Call
Create a subscription from Stripe.
Since I’m trying to initialize this Call, I have this error :
Stripe-API-Error

I saw a lot of old topics talking about this subject, but none of them that I tried worked for me.

I saw that apparently Bubble does not handle the content type so I had to put it myself in the Call, but didn’t worked also, even if I put it in both the API shared header and the Call header. (I was desperate)

So since I’m trying for so long, I was wondering if someone could help me with that.

Thank you all for your time !

Here’s my API Call :

Well, the error message is telling you the issue… (that the content type must be application/x-www-form-urlencoded).

Without seeing your API call no-one can tell you what you’re doing wrong, so feel free to share some screenshots.

(although one guess is that you’re trying to send a JSON request instead of a form-encoded request).

1 Like

My bad ! The Pic about my API Call didn’t upload, thanks for letting me know buddy

1 Like

Select Body type as JSON, and check the querystring. (Whenever you have url-encoded data type) see screenshot:

It worked ! I thought at first I only had to select the data type as a JSON.

Thank you very much for your time and help :pray:

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.