#kxshf

1 messages · Page 1 of 1 (latest)

quiet fulcrumBOT
placid vector
#

Hey @distant adder , could you please help me w this?

distant adder
placid vector
#

Sec

#

This is the reqID - req_JandibuZ2PBip3

for this account on my Stripe Connect - acct_1NicabIjozdmEQfO

distant adder
#

You are passing a json body:

{
  file: "@/home/kashif/Pictures/success.png",
  purpose: "identity_document",
}
#

which is not valid

placid vector
#

I'm not passing a JSON bro

#
--header 'Authorization: Basic MY_KEY_HERE' \
  -F "purpose"="identity_document" \
  -F "file"="@/home/kashif/Pictures/success.png"```
#

This is my request

distant adder
#

The request Id you shared with me was a Postman request and not a curl

placid vector
#

Yes, I just copy pasted the cURL to share it w you ..

#

I remember using this API somewhere in April / May, it was working as expected

#

Now, it's throwing this error - { "error": { "message": "Invalid request (check that your POST content type is application/x-www-form-urlencoded). If you have any questions, we can help at https://support.stripe.com/.", "type": "invalid_request_error" } }

#

I've tried using both multipart/form-data and application/x-www-form-urlencoded; Both of these doesn't work.

Moreoever, multipart/form-data is the only way to send files over HTTP requests, but it throws the same error.

distant adder
#

When doing the curl request

#

Can you share the requestId of that curl ?

#

you can add -v option in order to print the header response values