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

Tutorial in target-csv gives KeyError when try to run it #32

Open
salihtuc opened this issue May 9, 2022 · 0 comments
Open

Tutorial in target-csv gives KeyError when try to run it #32

salihtuc opened this issue May 9, 2022 · 0 comments

Comments

@salihtuc
Copy link

salihtuc commented May 9, 2022

Hey there,

When you follow the steps in target-csv the command gives a KeyError:

Command:
~/.virtualenvs/tap-exchangeratesapi/bin/tap-exchangeratesapi | ~/.virtualenvs/target-csv/bin/target-csv

Console output:

INFO Replicating exchange rate data from 2022-05-09 using base USD
INFO Sending version information to singer.io. To disable sending anonymous usage data, set the config parameter "disable_collection" to true
Traceback (most recent call last):
  File "/Users/salihtuc/.virtualenvs/tap-exchangeratesapi/bin/tap-exchangeratesapi", line 33, in <module>
    sys.exit(load_entry_point('tap-exchangeratesapi==0.1.1', 'console_scripts', 'tap-exchangeratesapi')())
  File "/Users/salihtuc/.virtualenvs/tap-exchangeratesapi/lib/python3.10/site-packages/tap_exchangeratesapi/__init__.py", line 115, in main
    do_sync(config.get('base', 'USD'), start_date)
  File "/Users/salihtuc/.virtualenvs/tap-exchangeratesapi/lib/python3.10/site-packages/tap_exchangeratesapi/__init__.py", line 64, in do_sync
    for rate in payload['rates']:
KeyError: 'rates'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant