Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source-recharge: do not parse json in should_retry #17822

Merged
merged 5 commits into from
Oct 11, 2022

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Oct 11, 2022

What

Fix
The RechargeStream overrides should_retry and was trying to parse JSON response during execution, but recharge responses are not always JSON and this led to the following error:
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0).

How

Remove attempt at parsing JSON response.

@github-actions github-actions bot added the area/documentation Improvements or additions to documentation label Oct 11, 2022
@alafanechere
Copy link
Contributor Author

/test connector=connectors/source-recharge

@alafanechere alafanechere marked this pull request as ready for review October 11, 2022 10:07
@alafanechere
Copy link
Contributor Author

alafanechere commented Oct 11, 2022

/publish connector=connectors/source-recharge

🕑 Publishing the following connectors:
connectors/source-recharge
https://github.com/airbytehq/airbyte/actions/runs/3226937362


Connector Did it publish? Were definitions generated?
connectors/source-recharge

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@alafanechere
Copy link
Contributor Author

alafanechere commented Oct 11, 2022

/publish connector=connectors/source-recharge

🕑 Publishing the following connectors:
connectors/source-recharge
https://github.com/airbytehq/airbyte/actions/runs/3228962978


Connector Did it publish? Were definitions generated?
connectors/source-recharge

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@alafanechere alafanechere merged commit e4d1da5 into master Oct 11, 2022
@alafanechere alafanechere deleted the augustin/source-recharge/fix-json-decode-error branch October 11, 2022 19:08
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/recharge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants