Huzaifa Patel
07/05/2024, 4:31 PMPlugin configuration is invalid
JSONSchema was: {'type': 'object', 'properties': {'access_token': {'type': ['string'], 'description': 'A user access token'}, 'ig_user_ids': {'type': 'array', 'items': {'type': ['integer']}, 'description': 'User IDs of the Instagram accounts to replicate'}, 'media_insights_lookback_days': {'type': ['integer', 'null'], 'default': 60, 'description': 'The tap fetches media insights for Media objects posted in the last `insights_lookback_days` days - defaults to 14 days if not provided'}, 'start_date': {'type': ['string', 'null'], 'format': 'date-time', 'description': 'The earliest record date to sync'}, 'metrics_log_level': {'type': ['string', 'null'], 'description': 'A user access token'}, 'stream_maps': {'type': ['object', 'null'], 'properties': {}, 'description': 'Config object for stream maps capability.'}, 'stream_map_config': {'type': ['object', 'null'], 'properties': {}, 'description': 'User-defined config values to be used within map expressions.'}, 'flattening_enabled': {'type': ['boolean', 'null'], 'description': "'True' to enable schema flattening and automatically expand nested properties."}, 'flattening_max_depth': {'type': ['integer', 'null'], 'description': 'The max depth to flatten schemas.'}}, 'required': ['access_token', 'ig_user_ids']}
Edgar Ramírez (Arch.dev)
07/05/2024, 5:00 PMaccess_token
and ig_user_ids
?Huzaifa Patel
07/05/2024, 5:27 PM['username']
Reuben (Matatika)
07/05/2024, 5:50 PMmeltano config tap-instagram list
?Huzaifa Patel
07/05/2024, 6:13 PMHuzaifa Patel
07/05/2024, 6:14 PMEdgar Ramírez (Arch.dev)
07/05/2024, 6:19 PMmetrics_log_level
is misleading, so you shouldn't be setting it to the access token: https://github.com/voxmedia/tap-instagram/pull/20
2. ig_user_ids
should be a list of integers so you probably need to double-check thatHuzaifa Patel
07/05/2024, 6:35 PMReuben (Matatika)
07/05/2024, 6:59 PMig_user_ids
(says list of strings), but does contain some info on how to get them: https://github.com/voxmedia/tap-instagram?tab=readme-ov-file#configuration
As Edgar said, you will see that config validation failure if the array items are not integers (as per tap.py), which you could verify by passing [123]
as a test.Edgar Ramírez (Arch.dev)
07/05/2024, 7:31 PMDo you know what I should have that set to?Rather it's ok not to set it
Huzaifa Patel
07/05/2024, 8:31 PM