Skip to content

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

@jlloyd-widen

Description

@jlloyd-widen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions