Json to Avro conversion error in Paypal connector #34025
Unanswered
anupam45
asked this question in
Connector Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to sync to S3 using the Stripe connector and get the following fatal error. The destination creates Avro files.
tech.allegro.schema.json2avro.converter.AvroConversionException: Failed to convert JSON to Avro: Could not evaluate union, field setup_error is expected to be one of these: NULL, RECORD. If this is a complex type, check if offending field (path: setup_error.payment_method.customer) adheres to schema: { some stripe data }
I get the above error with json as well, just not fatal.
This issue happens to us on specific customers but not all, and particularly customer who have had Stripe for longer time. There is no resolution that I could find on Slack or git.
One potential cause could be; in Stripe world each account has a certain api version linked to it. If you don’t pass the account version it’ll look up the linked version and use that to send the response. I do not see a logic in the Stripe connector source code that manages for this compatibility, so makes me think that could be the culprit.
My current Airbyte Stripe connector version is 4.4.0 which corresponds to 2023-10-04 for Stripe.
When I curl for a response using native Stripe API for the above customer is, I get 2018-05-21 as the version.
Beta Was this translation helpful? Give feedback.
All reactions