<@U04S8PLJWMT> i built a CDK conector and created ...
# ask-ai
h
@kapa.ai i built a CDK conector and created a docker image and verifed and Tested the source, Test connection is getting passed, but during sync it says an error and sync with 0 records The error 2025-08-21 173313 source > Starting syncing SourceStripeRevenueRecognition 2025-08-21 173313 source > Skipped syncing stream 'debit_credit_summary' because it was unavailable. Stripe api_key is blank. Set 'api_key' in source config to a Stripe secret key (sk_...). 2025-08-21 173313 source > Finished syncing debit_credit_summary 2025-08-21 173313 destination > 2025-08-21 173313 WARN c.n.s.JsonMetaSchema(newValidator):338 - Unknown keyword examples - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword 2025-08-21 173313 source > SourceStripeRevenueRecognition runtimes: Syncing stream debit_credit_summary 00000.000613 where should tis be handled,
k
The error message indicates that the Stripe API key is missing in your source configuration:
Copy code
Skipped syncing stream 'debit_credit_summary' because it was unavailable. Stripe api_key is blank. Set 'api_key' in source config to a Stripe secret key (sk_...).
This means that, although your connector passes the connection test, the actual sync fails because the required
api_key
is not set in the source configuration at runtime. This should be handled in your connector's configuration logic—specifically, you need to ensure that the
api_key
is provided and validated before attempting to sync any streams. Where to handle this: - In your connector's configuration schema, make sure
api_key
is a required field. - In your connector's code (likely in the
check
and
read
methods), add validation to check that
api_key
is present and not blank before proceeding with any API calls or stream syncing. - If the key is missing, raise a clear configuration error so users are informed during setup, not just at sync time. This approach is consistent with how the official Stripe connector requires and validates the API key during setup and sync. The documentation also emphasizes the need to provide the API key in the source configuration for successful operation [Stripe Setup Guide](https://docs.airbyte.com/integrations/sources/stripe#setup-guide). Summary: You should handle this in your connector's configuration validation logic, ensuring that the
api_key
is required and present before any sync attempts. If it's missing, fail early with a clear error message to the user.