** Custom connector integration test error ** Hi A...
# replication-troubleshooting
ł
** Custom connector integration test error ** Hi Airbyte folks. I’m trying to create a new HTTP source, using the CDK. I followed the guide, connected to the source with
python main.py check --config secrets/config.json
command and got the right response after running
python main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json
. Now, after creating the docker image with this command:
Copy code
docker build . -t airbyte/source-tidsbanken-api:dev --no-cache
and testing it with the command below:
Copy code
python -m pytest integration_tests -p integration_tests.acceptance
I got one error, that is quite bizarre and is referring to the incorrect primary key, even though I checked three times, it is correct. Any ideas about what am I missing here?
Here is how it’s configured:
w
you need to try docker run integration tests ... python -m runs the code using your environment. You need to run it as the docker image to see what its getting held up on. A key error would imply that some dictionary does not actually contain an element of properties. You could always check to see if properties is in the dictionary before accessing that element. If "properties" should always be in the dict, then you need to address why it isnt which may be more of an issue on your end.
ł
Thank you, Walker. I found the issue, it was pretty simple. I had different stream names declared in
spec.yaml
and in the schema
table.json
names 🤦‍♂️
** CDK connector acceptance test error ** Hi folks again, I moved from the error above and now have only
pydantic
related errors. I’ve checked the other
.json
files that the parser could reference by setting up against, but still getting this. Anyone has seen and solved it before?
n
Hi, @Łukasz Aszyk! Our team does not have the capacity or resources to support custom development questions right now, but I'd be happy to review the PR when you submit it! I hope someone from the community chimes in, also feel free to reach out to other community members who have contributed PRs!
👍 1