This error really bugging me.
Trying to figure out why I’m getting the below Content-Type error with my setup appearing to be correct:
Jici
June 14, 2019, 12:13am
2
First thing, you need to create a json payload. Actually you have set parameters.
Also, you may need to add header
Content-Type: application/json
That doesn’t work for me for some reason:
I need to create a JSON payload?
Jici
June 14, 2019, 12:48am
4
NEvermind. I forget that Stripe use form encoded. Not json.
Add header Content-Type: application/x-www-form-urlencoded
Jici
June 14, 2019, 12:48am
5
If this doesn’T work, I have another post that state what currently happen in different case with the API Connector. Bubble need to have a check and fix that becayse it’s very weird. I will try to find it
I do a few test and see very strange behavior of the API connector.
I think it’S a bug and must be reported to Bubble.
Test a) Put only a parameter with no header
Content type is to application/json (wrong, if we consider that json body is empty, this should be application/x-www-form-urlencoded)
Test b) Put paramter with application/x-www-form-urlencoded in header. Bubble overwrite it to json again.
Test C) Put a body json (no parameter) and add header application/x-www-form-urlencoded… Hea…