Xavier
03/14/2023, 2:21 PMCaused by: java.lang.RuntimeException: No properties node in stream schema
at io.airbyte.workers.general.DefaultReplicationWorker.populateStreamToAllFields(DefaultReplicationWorker.java:696)
The error is descriptive enough to find my issue: I do not have a schema defined for the stream and thus also no properties node can be found inside that schema (strange that it does run locally then though).
Nothing changes however when trying to fix the error by adding a .json file in the schemas directory with the name of the file = the name of the stream. I have tried both adding the real schema of the data and a schema which should not correspond to the data, neither have an effect. It still runs fine locally (without showing any warnings or errors about the wrong schema) but not on the airbyte platform (making sure to refresh the schema and that the latest version of the image is present). From reading the documentation I assumed that by defining this file with the right name in the right directory airbyte should find it and use it. I have seen that you can define the schema (or the location of this file) manually in the configured-catalog.json file or in the yaml file itself as well. Should I define it in either of these (and what is the priority between these options)?
Thank you!
Update:
We have gotten it to kinda work by defining the location of the json file manually in the YAML as follows:
schema_loader:
type: JsonFileSchemaLoader
file_path: location of .json file in the schemas directory
However, the schema defined in that file seems to get ignored. When we try adding a required property that does not exist everything still works.