Hi, I have started to use tap-instagram and was wo...
# troubleshooting
h
Hi, I have started to use tap-instagram and was wondering if anybody knows why this comes up when I run the test as shown on the https://hub.meltano.com/extractors/tap-instagram page. I used the same access token twice for the 'metrics-log-level' because I don't know where to get that and was wondering if anybody could point me in the right direction here?
Copy code
Plugin 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']}
1
e
Have you configured
access_token
and
ig_user_ids
?
h
Yes, I used the access token from the graph api explorer on developers.facebook and stored ig_user_ids as my instagram username in an array like
Copy code
['username']
r
What do you see if you run
meltano config tap-instagram list
?
h
hidden the key and the username for obvious reasons but this is what shows up
I'm guessing because the key shows up in the output, it might be the wrong thing. How do I get the token that's supposed to go in there? Maybe it's incorrect and I need to put the correct thing inside
e
1. I think the description of
metrics_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 that
h
ah ye that makes sense, I assumed it wasn't the access token but tried anyways. Do you know what I should have that set to? As for the ig_user_ids, I thought this was just the username of the account I want to pull data from. Do you know how I can get the id?
r
README is misleading for
ig_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.
👍 1
e
Do you know what I should have that set to?
Rather it's ok not to set it
h
Ah brilliant I got past the error. Of course a new error has shown up but it being unrelated I'll post a message away from this thread about it tomorrow. Thank you both for your help!
🙌 1
np 1