This is a Singer tap that produces JSON-formatted data following the Singer spec.
Copyright © 2019 Stitch
License: GNU Affero General Public License v3.0
This is a Singer tap that produces JSON-formatted data following the Singer spec.
Copyright © 2019 Stitch
This was an issue recently discovered when trying to set up a DynamoDB integration with Stitch. The stream was incorrectly configured to use ONLY_KEYS
, however the error message received by Stitch was
Extraction failed for ‘NoneType’ object has no attribute ‘items'
this itself is a python error message received when the following in log_based.py
line 90 is executed:
record_message = deserializer.deserialize_item(record['dynamodb'].get('NewImage'))
which calls
def deserialize_item(self, item):
return self.deserialize({'M': item})
This makes boto3 TypeDeserializer deserialise a Map value like the following {'M': None}
in the following Types.py function
def _deserialize_m(self, value):
return dict([(k, self.deserialize(v)) for k, v in value.items()])
Thus causing the above error message.
To avoid this there should be type checks within the deserialize_item
function and an appropriate call to the correct deserialize ie. {'Null': True}
for None - since boto3 appears to require: "Value must be a nonempty dictionary whose key is a valid dynamodb type"
This also explains why the following check is never evaluated in log_base.py
line 91:
if record_message is None:
LOGGER.fatal('Dynamo stream view type must be either "NEW_IMAGE" "NEW_AND_OLD_IMAGES"')
raise RuntimeError('Dynamo stream view type must be either "NEW_IMAGE" "NEW_AND_OLD_IMAGES"')
There is no documentation on what the config file MUST have, what is optional and what are the possible values of each input.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.