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

Expecting property name enclosed in double quotes #44

Open
lassebenni opened this issue Jul 24, 2021 · 0 comments
Open

Expecting property name enclosed in double quotes #44

lassebenni opened this issue Jul 24, 2021 · 0 comments

Comments

@lassebenni
Copy link

lassebenni commented Jul 24, 2021

With the example config stored in config.json:

{
    "start_date": "2017-11-02T00:00:00Z",
    "account_id": "1234567890",
    "role_name": "role_with_bucket_access",
    "bucket": "my-bucket",
    "external_id": "my_optional_secret_external_id",
    "tables": "[{\"search_prefix\":\"exports\",\"search_pattern\":\"my_table\\\\/.*\\\\.csv\",\"table_name\":\"my_table\",\"key_properties\":\"id\",\"date_overrides\":\"created_at\",\"delimiter\":\",\"}]",
}

And running tap-s3-csv -c config.json I get:

CRITICAL Expecting property name enclosed in double quotes: line 8 column 1 (char 406)
Traceback (most recent call last):
  File "/Users//miniconda3/envs/aws/bin/tap-s3-csv", line 8, in <module>
    sys.exit(main())
  File "/Users//miniconda3/envs/aws/lib/python3.8/site-packages/singer/utils.py", line 192, in wrapped
    return fnc(*args, **kwargs)
  File "/Users//miniconda3/envs/aws/lib/python3.8/site-packages/tap_s3_csv/__init__.py", line 71, in main
    args = singer.utils.parse_args(REQUIRED_CONFIG_KEYS)
  File "/Users//miniconda3/envs/aws/lib/python3.8/site-packages/singer/utils.py", line 135, in parse_args
    args.config = load_json(args.config)
  File "/Users//miniconda3/envs/aws/lib/python3.8/site-packages/singer/utils.py", line 76, in load_json
    return json.load(fil)
  File "/Users//miniconda3/envs/aws/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/Users//miniconda3/envs/aws/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/Users//miniconda3/envs/aws/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users//miniconda3/envs/aws/lib/python3.8/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 8 column 1 (char 406)

Any ideas?

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