headersAPI = {
'Content-Type': 'application/json'
, 'accept': 'application/json'
,'Authorization': 'Bearer XXXXXXXXXXXXXXXXXXXXXXXXXX',
}
skill_response=requests.get("XXXXXX",headers=headersAPI),headers=headersAPI)
log.info(skill_response.text)
skill_json=skill_response.json()
print(skill_json) ##print the json data and verified
log.info('skills data')
log.info(skill_json["status"])
DataSink0 = glueContext.write_dynamic_frame.from_options(frame =
skill_json, connection_type = "s3", format = "csv", connection_options=
{"path": "s3://xxxxx/", "partitionKeys": []}, transformation_ctx= "DataSink0")
job.commit()
TypeError: frame_or_dfc must be DynamicFrame orDynamicFrameCollection. Got <class 'dict'>
While writing to S3 I get this error: 'dict' object has no attribute '_jdf'