request failed: Request error: error sending request for url (https://api.stripe.com/v1/invoices?limit=100):
error trying to connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:../ssl/statem/statem_clnt.c:1914:
(unable to get local issuer certificate)
To re-produce this, I followed the instructions on setting up the stripe fdw and ran the following:
-- select pgsodium.create_key(name := 'stripe');
-- insert into vault.secrets (secret, key_id)
-- values (
-- 'sk_test_MyPrivateKey,
-- (select id from pgsodium.valid_key where name = 'stripe')
-- )
-- returning
-- key_id;
-- create server stripe_server
-- foreign data wrapper stripe_wrapper
-- options (
-- api_key_id '14b9cdd9-1ad7-4fa9-ae2c-2821417b6673'
-- );
-- create schema stripe;
-- create foreign table stripe.accounts (
-- id text,
-- business_type text,
-- country text,
-- email text,
-- type text,
-- created timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'accounts'
-- );
-- create foreign table stripe.balance (
-- balance_type text,
-- amount bigint,
-- currency text,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'balance'
-- );
-- create foreign table stripe.balance_transactions (
-- id text,
-- amount bigint,
-- currency text,
-- description text,
-- fee bigint,
-- net bigint,
-- status text,
-- type text,
-- created timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'balance_transactions'
-- );
-- create foreign table stripe.customers (
-- id text,
-- email text,
-- name text,
-- description text,
-- created timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'customers',
-- rowid_column 'id'
-- );
-- create foreign table stripe.events (
-- id text,
-- type text,
-- api_version text,
-- created timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'events'
-- );
-- create foreign table stripe.files (
-- id text,
-- filename text,
-- purpose text,
-- title text,
-- size bigint,
-- type text,
-- url text,
-- created timestamp,
-- expires_at timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'files'
-- );
-- create foreign table stripe.file_links (
-- id text,
-- file text,
-- url text,
-- created timestamp,
-- expired bool,
-- expires_at timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'file_links'
-- );
-- create foreign table stripe.invoices (
-- id text,
-- customer text,
-- subscription text,
-- status text,
-- total bigint,
-- currency text,
-- period_start timestamp,
-- period_end timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'invoices'
-- );
-- create foreign table stripe.mandates (
-- id text,
-- payment_method text,
-- status text,
-- type text,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'mandates'
-- );
-- create foreign table stripe.payment_intents (
-- id text,
-- customer text,
-- amount bigint,
-- currency text,
-- payment_method text,
-- created timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'payment_intents'
-- );
-- create foreign table stripe.payouts (
-- id text,
-- amount bigint,
-- currency text,
-- arrival_date timestamp,
-- description text,
-- statement_descriptor text,
-- status text,
-- created timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'payouts'
-- );
-- create foreign table stripe.products (
-- id text,
-- name text,
-- active bool,
-- default_price text,
-- description text,
-- created timestamp,
-- updated timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'products',
-- rowid_column 'id'
-- );
-- create foreign table stripe.refunds (
-- id text,
-- amount bigint,
-- currency text,
-- charge text,
-- payment_intent text,
-- reason text,
-- status text,
-- created timestamp,
-- attrs jsonb
-- )
-- server stripe_server
-- options (
-- object 'refunds'
-- );
-- select * from stripe.customers limit 10;
-- select * from stripe.invoices limit 10;
-- select * from stripe.subscriptions limit 10;
A clear and concise description of what you expected to happen.