Open jlloyd-widen opened 3 years ago
It's probably incompatibility that can be overcome. I'm not a user of Meltano, but can you first try removing discover from capabilities section in meltano.yml and run infer_schema separately (don't know how you can do this from Meltano...you might need to manually run tap-rest-api) to generate the schema and catalog files before running the sync in Meltano?
I just chatted with the folks at Meltano. This is definitely a compatibility issue. Currently Meltano defaults to running discovery before running a separate command with the provided args. I'll be filing an issue with them to change this default behavior.
I tried manually generating the schema and catalog files. I first removed the - discover
from capabilities
. Then I ran meltano invoke tap-rest-api --infer_schema
. The first error I got was Applying catalog rules failed: catalog file is missing.
which I thought was odd because I thought --infer_schema
was supposed to generate that. Regardless I got passed that by also removing the - catalog
capability.
I ran meltano invoke tap-rest-api --infer_schema
again. This time it gave me this error: CRITICAL local variable 'end_from_config' referenced before assignment
. Some feedback on this, my endpoint doesn't need any time or index information to be provided. Fortunately, my endpoint doesn't still respond even if you do provide it.
So I added index_key
and end_index
to my config with some dummy values and then ran meltano invoke tap-rest-api --infer_schema
again. This generated both the catalog and schema.
Running tap within Meltano. Specifically the following command
meltano invoke tap-rest-api --infer_schema
ormeltano select --list --all tap-rest-api
. I have the followingmeltano.yml
:Here's full text of the error. It appears to be trying to read a file that has not been created yet.
One concern is that the command meltano seems to be generating seems to be using
discover
instead ofinfer_schema
. So maybe this is a bug in meltano or just demonstrating incompatibility with Meltano?