Hey, I am learning to build an http source connect...
# ask-community-for-troubleshooting
b
Hey, I am learning to build an http source connector. I mentioned
supported_sync_modes": ["full_refresh","incremental"]
in
configured_catalog.json
for a stream but in airbyte UI (local) when I try to set up the sync it only shows
full_refresh
as an option for source connector, any idea how to resolve this?
s
Have you tried rebuilding the connector and/or redeploying your local airbyte instance?
b
Hi @Saj Dider (Airbyte), Yes, I have tried it just now but it still does not show the incremental option , here is my
configured_catalog.json
file and the UI picture
Copy code
{
  "streams": [
    {
      "stream": {
        "name": "nextlab",
        "json_schema": {
          "type": "object",
          "properties": {
            "token_id": {
              "type": "string"
            }
          }
        },
        "supported_sync_modes": [
          "full_refresh",
          "incremental"
        ]
      },
      "sync_mode": "incremental",
      "destination_sync_mode": "overwrite"
    }
  ]
}
@Saj Dider (Airbyte)
s
Just to be clear, you followed all of the instructions here under "add a connector under development to Airbyte" right? My guess here is that the connector you're interacting with in the UI is an old version of the connector that hasn't been updated, which is why it's not showing the incremental sync mode. I'm definitely not 100% sure so I just want to cross everything trivial off the list before we consider it a bug.
b
@Saj Dider (Airbyte) I have followed the steps and it's the newer version but I found the problem ( I think ). I just found that the incremental sync needs a
cursor_field
for airbyte to identify it as an incremental sync ( I am pretty new to this, I did not know this until I saw that )