Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meltano select errors with if v["aliases"]: TypeError: string indices must be integers #4

Open
jlloyd-widen opened this issue Aug 28, 2023 · 0 comments · May be fixed by #5
Open

meltano select errors with if v["aliases"]: TypeError: string indices must be integers #4

jlloyd-widen opened this issue Aug 28, 2023 · 0 comments · May be fixed by #5

Comments

@jlloyd-widen
Copy link

jlloyd-widen commented Aug 28, 2023

Installed and ran meltano select --list --all tap-elasticsearch but I got:

  File ".meltano/extractors/tap-elasticsearch/venv/lib/python3.8/site-packages/tap_elasticsearch/tap.py", line 54, in discover_streams
    if v["aliases"]:
TypeError: string indices must be integers

Is aliases specific to someone's elasticsearch implementation? Doesn't seem to apply to ours. I do believe I have supplied the correct base_url and that it is actually reaching it but perhaps that could cause this as well? 🤷

UPDATE: Turns out this was caused by an extra / at the end of my base_url. I had to edit the code discover this. The useful error message I got with my tweak was to "print" aliases.values() which gave me this:

dict_values(['Incorrect HTTP method for uri [//_aliases] and method [GET], allowed: [PUT]', 405])

Might be good to put in a try/catch or some other check on aliases to expose error messages like this. Just an idea.

@jlloyd-widen jlloyd-widen linked a pull request Aug 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant