Title: bug/SaaS API Kafka Cloud Connector inconsistency · Issue #308 · Unstructured-IO/unstructured-python-client · GitHub
Open Graph Title: bug/SaaS API Kafka Cloud Connector inconsistency · Issue #308 · Unstructured-IO/unstructured-python-client
X Title: bug/SaaS API Kafka Cloud Connector inconsistency · Issue #308 · Unstructured-IO/unstructured-python-client
Description: Describe the bug When attempting to create a Kafka Cloud source connector directly with the API, there appears to be no minimum viable configuration that can successfully create the connector because the server is inconsistent about the ...
Open Graph Description: Describe the bug When attempting to create a Kafka Cloud source connector directly with the API, there appears to be no minimum viable configuration that can successfully create the connector becau...
X Description: Describe the bug When attempting to create a Kafka Cloud source connector directly with the API, there appears to be no minimum viable configuration that can successfully create the connector becau...
Opengraph URL: https://github.com/Unstructured-IO/unstructured-python-client/issues/308
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug/SaaS API Kafka Cloud Connector inconsistency","articleBody":"**Describe the bug**\n\nWhen attempting to create a Kafka Cloud source connector directly with the API, there appears to be no minimum viable configuration that can successfully create the connector because the server is inconsistent about the requirement for a `bootstrap_server{,s}` key.\n\nFirst, attempting to create the connector with `bootstrap_servers`:\n\n```http\nPOST /api/v1/sources/ HTTP/1.1\nAccept: application/json, */*;q=0.5\nAccept-Encoding: gzip, deflate\nConnection: keep-alive\nContent-Length: 168\nContent-Type: application/json\nHost: platform.unstructuredapp.io\nUser-Agent: HTTPie/3.2.4\nunstructured-api-key: ******\n\n{\n \"config\": {\n \"bootstrap_servers\": \"https://example.com\",\n \"kafka_api_key\": \"foo\",\n \"secret\": \"foo\",\n \"topic\": \"foo\"\n },\n \"name\": \"test-kafka-connector\",\n \"type\": \"kafka-cloud\"\n}\n\n\nHTTP/1.1 412 Precondition Failed\ncontent-length: 71\ncontent-type: application/json\ndate: Wed, 20 Aug 2025 20:22:42 GMT\nserver: istio-envoy\nx-envoy-upstream-service-time: 50\n\n{\n \"errors\": [\n {\n \"field\": \"bootstrap_server\",\n \"message\": \"Field is required\"\n }\n ]\n}\n```\n\nThe error message indicates that it should be `bootstrap_server`.\n\n```http\nPOST /api/v1/sources/ HTTP/1.1\nAccept: application/json, */*;q=0.5\nAccept-Encoding: gzip, deflate\nConnection: keep-alive\nContent-Length: 167\nContent-Type: application/json\nHost: platform.unstructuredapp.io\nUser-Agent: HTTPie/3.2.4\nunstructured-api-key: ******\n\n{\n \"config\": {\n \"bootstrap_server\": \"https://example.com\",\n \"kafka_api_key\": \"foo\",\n \"secret\": \"foo\",\n \"topic\": \"foo\"\n },\n \"name\": \"test-kafka-connector\",\n \"type\": \"kafka-cloud\"\n}\n\n\nHTTP/1.1 422 Unprocessable Entity\ncontent-length: 191\ncontent-type: application/json\ndate: Wed, 20 Aug 2025 20:23:50 GMT\nserver: istio-envoy\nx-envoy-upstream-service-time: 80\n\n{\n \"detail\": [\n {\n \"input\": {\n \"bootstrap_server\": \"https://example.com\",\n \"kafka_api_key\": \"foo\",\n \"secret\": \"foo\",\n \"topic\": \"foo\"\n },\n \"loc\": [\n \"body\",\n \"bootstrap_servers\"\n ],\n \"msg\": \"Field required\",\n \"type\": \"missing\"\n }\n ]\n}\n```\n\nNow the error message says that `bootstrap_servers` is missing.\n\n**To Reproduce**\n\nUsing HTTPie:\n\n\n```sh\n$ http -jv POST https://platform.unstructuredapp.io/api/v1/sources/ unstructured-api-key:$UNSTRUCTURED_API_KEY name=test-kafka-connector type=kafka-cloud config:='{\"topic\":\"foo\",\"kafka_api_key\":\"foo\",\"secret\":\"foo\",\"bootstrap_servers\":\"https://example.com\"}'\n```\n\n```sh\n$ http -jv POST https://platform.unstructuredapp.io/api/v1/sources/ unstructured-api-key:$UNSTRUCTURED_API_KEY name=test-kafka-connector type=kafka-cloud config:='{\"topic\":\"foo\",\"kafka_api_key\":\"foo\",\"secret\":\"foo\",\"bootstrap_server\":\"https://example.com\"}'\n```\n\n**Expected behavior**\n\nOne of these two should have worked, or should have moved on to some other validation message.\n\n**Additional context**\n\nDocumentation for the [source connector](https://docs.unstructured.io/api-reference/workflow/sources/kafka) shows the singular `bootstrap_connector`. The [Python SDK](https://github.com/Unstructured-IO/unstructured-python-client/blob/main/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfiginput.py#L27) uses the plural `bootstrap_connectors`.","author":{"url":"https://github.com/aws-gopher","@type":"Person","name":"aws-gopher"},"datePublished":"2025-08-20T20:30:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/308/unstructured-python-client/issues/308"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc6f2270-9c5f-0866-f26f-2b473d26b796 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA00:121D22:37EFD7A:4B9182E:69707A33 |
| html-safe-nonce | 9cc7c92c390dbe0399fdaf3cb25f3b02b5ab4cf163605f37f3d5d39d31244000 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTAwOjEyMUQyMjozN0VGRDdBOjRCOTE4MkU6Njk3MDdBMzMiLCJ2aXNpdG9yX2lkIjoiMjkzOTM3MDk5Mzc0ODA0ODQzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 83edbaf6f942c9c61c6587dcb6f8326ae7541735c9d6791568261c91c0d7f94e |
| hovercard-subject-tag | issue:3339462344 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Unstructured-IO/unstructured-python-client/308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae0f46f6c5f2c64f641fd298c43a20f072c25819373ffe3d781273927a7706c6/Unstructured-IO/unstructured-python-client/issues/308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae0f46f6c5f2c64f641fd298c43a20f072c25819373ffe3d781273927a7706c6/Unstructured-IO/unstructured-python-client/issues/308 |
| og:image:alt | Describe the bug When attempting to create a Kafka Cloud source connector directly with the API, there appears to be no minimum viable configuration that can successfully create the connector becau... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aws-gopher |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/Unstructured-IO/unstructured-python-client git https://github.com/Unstructured-IO/unstructured-python-client.git |
| octolytics-dimension-user_id | 108372208 |
| octolytics-dimension-user_login | Unstructured-IO |
| octolytics-dimension-repository_id | 689850105 |
| octolytics-dimension-repository_nwo | Unstructured-IO/unstructured-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 689850105 |
| octolytics-dimension-repository_network_root_nwo | Unstructured-IO/unstructured-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width