Issue with Google Drive Source Creation via Airbyte API

Summary

User is encountering a 400 error when attempting to create a Google Drive source using the Airbyte API, while other sources like Slack are created successfully. The error indicates that the submitted value ‘source-google-drive’ could not be found.


Question


I am using airbyte to get data out of my google drive and put it in weaviate. I was able to do POC by manually creating the connecotr.
But I want to create the source, destination and connection programatically.
I used airbyte-api to do this, I am able to create the destination successfully. But with source google-drive I am getting an issue.

URL: <http://localhost:8006/v1/sources>

Request Body:

{
  "configuration": {
    "sourceType": "source-google-drive",
    "credentials": {
      "auth_type": "Client",
      "client_id": "123",
      "client_secret": "123",
      "refresh_token": "123"
    },
    "streams": [
      {
        "globs": [
          "**"
        ],
        "validation_policy": "Skip Record",
        "days_to_sync_if_history_is_full": 3,
        "format": {
          "filetype": "unstructured",
          "processing": {
            "mode": "local"
          },
          "skip_unprocessable_files": true,
          "strategy": "fast"
        },
        "schemaless": false,
        "name": "gDrive",
        "primary_key": "document_key"
      }
    ],
    "folder_url": "<https://drive.google.com/drive/folders/12345678910>"
  },
  "name": "gDrive",
  "workspaceId": "3663eef6-5bcd-4b63-9ecf-9f5d6215d785"
}

Respone:
{
  "type": "<https://reference.airbyte.com/reference/errors>",
  "title": "value-not-found",
  "status": 400,
  "detail": "Submitted value could not be found: source-google-drive"
}

I tried to create another source like Slack from api and that worked fine.
Any help is appreciated, if you can point me to the code as well, I can debug and fix this. Thanks```

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C021JANJ6TY/p1709194285369119) if you want
to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
['google-drive', 'airbyte-api', 'source-creation', 'error-400']
</sub>