Summary
Error message indicates missing required properties ‘api_key’ and ‘url’ when creating a source using developer APIs.
Question
i am trying to create the source using developer apis
i am getting this 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: $: required property 'api_key' not found, $: required property 'url' not found "}}
This is the url I am using url = "http:localhost:8000/api/public/v1/sources"
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.
Join the conversation on Slack
["api", "error", "source-creation", "json-schema-validation"]
Can you share the payload too?
here is the payload
"sourceType": "aha",
"folder_url": f"<https://drive.google.com/drive/folders/{folderiD}>",
"credentials": {
"client_id": client_id,
"client_secret": client_secret,
"refresh_token": token
},
"streams": [
{
"globs": ["**"],
"validation_policy": "Emit Record",
"days_to_sync_if_history_is_full": 3,
"format": {
"strategy": "auto",
"skip_unprocessable_files": True
},
"schemaless": False,
"name": "Test"
}
]
} }```
my airbyte is hosted on virtual machine one azure.
Now i am getting this error
<head><title>405 Not Allowed</title></head>
<body>
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.25.4</center>
</body>
</html>```