Google Apps Scriptで以下のようなソースコードでリクエストすると、エラーが発生します。
ソースコード
```
function createStripeCustomer(userId) {
// Create a Stripe customer object
var stripeCustomer = {
description: "this is description",
metadata: {
key: "value",
}
};
// Call the Stripe API to create the customer
var stripeApiKey = STRIPE_SECRET_KEY;
var stripeCustomerResponse = UrlFetchApp.fetch("https://api.stripe.com/v1/customers", {
method: "POST",
headers: {
Authorization: "Bearer " + stripeApiKey
},
payload: stripeCustomer,
muteHttpExceptions: true
});
// Parse the response from the Stripe API and return the customer object
var stripeCustomerObject = JSON.parse(stripeCustomerResponse.getContentText());
}
```