sudoramen
05/26/2023, 7:44 PMts
import { serve } from "https://deno.land/std@0.168.0/http/server.ts"
import Stripe from "https://esm.sh/stripe@11.0.0?target=deno&no-check";
serve(async () => {
const stripe = Stripe(Deno.env.get('STRIPE_PROD_SECRET'), {
apiVersion: "2022-11-15",
httpClient: Stripe.createFetchHttpClient(),
})
return new Response(
JSON.stringify(await stripe.customers.list()),
{ headers: { "Content-Type": "application/json" } },
)
})
This runs just fine when serving locally but when deployed, I never get a response back. The env var does match so I know that's not the issue.Cedric
05/26/2023, 8:02 PMCedric
05/26/2023, 8:10 PMsudoramen
05/26/2023, 8:20 PMCedric
05/26/2023, 8:30 PMCedric
05/26/2023, 8:38 PMsudoramen
05/26/2023, 8:41 PMstripe
just hangs, no error, just sits there until the function timeouts.saleemameen
05/28/2023, 10:18 AMsaleemameen
05/28/2023, 3:51 PMsudoramen
05/28/2023, 4:24 PM