Traceback (most recent call last):


 "/home/galois/.local/lib/python3.8/site-packages/xonsh/procs/pipelines.py", line 160, in __init__

proc = spec.run(pipeline_group=pipeline_group)


 "/home/galois/.local/lib/python3.8/site-packages/xonsh/procs/specs.py", line 445, in run

p = self.cls(self.alias, self.cmd, **kwargs)


 "/home/galois/.local/lib/python3.8/site-packages/xonsh/procs/proxies.py", line 430, in __init__

self.stdin = io.open(stdin, "wb", -1)
OSError: [Errno 9] Bad file descriptor

Traceback (most recent call last):


 "/usr/local/lib/python3.7/site-packages/cartography/sync.py", line 73, in run

stage_func(neo4j_session, config)


 "/usr/local/lib/python3.7/site-packages/cartography/util.py", line 68, in timed

return method(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/cartography/intel/aws/__init__.py", line 201, in start_aws_ingestion

requested_syncs,


 "/usr/local/lib/python3.7/site-packages/cartography/intel/aws/__init__.py", line 139, in _sync_multiple_accounts

aws_requested_syncs=aws_requested_syncs,
# Could be replaced later with per-account requested syncs


 "/usr/local/lib/python3.7/site-packages/cartography/intel/aws/__init__.py", line 57, in _sync_one_account

RESOURCE_FUNCTIONS[func_name](**sync_args)


 "/usr/local/lib/python3.7/site-packages/cartography/util.py", line 68, in timed

return method(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/cartography/intel/aws/apigateway.py", line 369, in sync

sync_apigateway_rest_apis(neo4j_session, boto3_session, region, current_aws_account_id, update_tag)


 "/usr/local/lib/python3.7/site-packages/cartography/util.py", line 68, in timed

return method(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/cartography/intel/aws/apigateway.py", line 359, in sync_apigateway_rest_apis

load_rest_api_details(neo4j_session, stages_certificate_resources, current_aws_account_id, aws_update_tag)


 "/usr/local/lib/python3.7/site-packages/cartography/util.py", line 68, in timed

return method(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/cartography/intel/aws/apigateway.py", line 297, in load_rest_api_details

parsed_policy = parse_policy(api_id, policy)


 "/usr/local/lib/python3.7/site-packages/cartography/util.py", line 68, in timed

return method(*args, **kwargs)


 "/usr/local/lib/python3.7/site-packages/cartography/intel/aws/apigateway.py", line 332, in parse_policy

policy = Policy(json.loads(policy))


 "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads

return _default_decoder.decode(s)


 "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode

obj, end = self.raw_decode(s, idx=_w(s, 0).end())


 "/usr/local/lib/python3.7/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 1 column 2 (char 1)
