Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[source-notion] start_date format problem #157

Open
1 task
atomkirk opened this issue Oct 22, 2024 · 1 comment
Open
1 task

[source-notion] start_date format problem #157

atomkirk opened this issue Oct 22, 2024 · 1 comment

Comments

@atomkirk
Copy link

Connector Name

source-notion

Connector Version

3.0.6

What step the error happened?

Configuring a new connector

Relevant information

The docs say the start date should include seconds https://docs.airbyte.com/integrations/sources/notion

CleanShot 2024-10-22 at 07 23 40@2x

Relevant log output

However, when I try to create it with the following terraform, I get an error:

resource "airbyte_source_notion" "notion" {
  configuration = {
    credentials = {
      access_token = {
        token = data.google_secret_manager_secret_version.notion_api_key.secret_data
      }
    }
    start_date = "2024-01-01T00:00:00.000Z"
  }
  name         = "${local.shared}-notion-source"
  workspace_id = local.workspace_id
}

the error:

 {"status":422,"type":"https://reference.airbyte.com/reference/errors#unprocessable-entity","title":"unprocessable-entity","detail":"The
│ body of the request was not
│ understood","documentationUrl":null,"data":{"message":"json schema
│ validation failed when comparing the data to the json schema. \nErrors:
│ $.start_date: does not match the regex pattern
│ ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$ "}}

As you can see my start date matches the regex, so why does't it accept it?

Contribute

  • Yes, I want to contribute
@marcosmarxm marcosmarxm changed the title Notion start date format problem [source-notion] start_date format problem Oct 23, 2024
@marcosmarxm
Copy link
Member

The regex and the value you're using are correct. I tried running the call directly from the API and I was able to create a Notion source without problem. If you remove the start_date param are you able to create the connector?

@marcosmarxm marcosmarxm transferred this issue from airbytehq/airbyte Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants