Unstructured-IO / Unstructured-IO/unstructured-python-client

bug/ Server Error when creating Snowflake connector

Đang mở
#310 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug
Ngôn ngữ chính
Python
Star
119
Fork
22
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Describe the bug

When attempting to create a Snowflake source connector with minimum viable configuration, the server returns a 500 status.

To Reproduce

With HTTPie:

$ http -jv POST https://platform.unstructuredapp.io/api/v1/sources/ unstructured-api-key:$UNSTRUCTURED_API_KEY name=test-snowflake-connector type=snowflake config:='{"account":"foo", "role":"foo", "user":"foo", "password":"foo", "host":"foo.snowflakecomputing.com", "database":"foo", "table_name":"foo", "id_column":"foo"}'
POST /api/v1/sources/ HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 234
Content-Type: application/json
Host: platform.unstructuredapp.io
User-Agent: HTTPie/3.2.4
unstructured-api-key: ****

{
    "config": {
        "account": "foo",
        "database": "foo",
        "host": "foo.snowflakecomputing.com",
        "id_column": "foo",
        "password": "foo",
        "role": "foo",
        "table_name": "foo",
        "user": "foo"
    },
    "name": "test-snowflake-connector",
    "type": "snowflake"
}

HTTP/1.1 500 Internal Server Error
content-length: 21
content-type: text/plain; charset=utf-8
date: Thu, 21 Aug 2025 13:33:59 GMT
server: istio-envoy
x-envoy-upstream-service-time: 104

Internal Server Error

Expected behavior

Either a validation error message or a successfully created connector.

Additional context

Documentation for the Snowflake connector seems to indicate that the above request should be valid.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu tại endpoint POST /api/v1/sources/ và tái hiện request Snowflake bằng cấu hình tối thiểu được tài liệu hóa. Kiểm tra đường dẫn tạo Snowflake connector và xác nhận rằng request либо tạo connector hoặc trả về lỗi xác thực thay vì HTTP 500.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.