Skip to content

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

@salihtuc

Description

@salihtuc

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions