I have gotten a bit stuck regarding where my issue...
# replication-troubleshooting
j
I have gotten a bit stuck regarding where my issue is and could use some pointers, I have managed to create an custom integration to an API that we are using, I have also managed to make it work for 2 of the streams, but when I try to add the third stream and I get the following error when I run read: Unexpected type for data_or_message: <class 'str'>: employers" , the schema is fully extended 3800 lines
Copy code
{
    "type": "object",
    "properties": {
        "employers": {
            "type": "array",
            "items": {
                "$ref": "CompanyUserProfileEmployerModel"
            },
            "nullable": true
        }, ...
and in my reply I am getting
Copy code
{"type": "DEBUG", "message": "Receiving response", "data": {"body": "{\"employers\":[{\"profileId\":122728,\"startDate\":\"2010-01-01T00:00:00\",\"endDate\":\"2012-09-30T00:00:00\", ...
(posted this message first in the wrong channel I believe so moving it here), So where do troubleshoot next, not really sure what is wrong here.
a
Hey I am not sure here, i think you should return body[employers]
j
I got the time to debug this, my api returned a single record instead of a list of records so wrapping the answer for this endpoint as [response.json()] solved my issue
n
Hi, Jon! 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!
j
Yeah solved it as I mentioned above.