Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

When page is 1, TypesenseQueryError is returned

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

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

Đánh giá

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

Hướng nghiên cứu

Start in typesense/api_call.py around lines 139-140 and reproduce the issue with Typesense 0.17.0 using a query whose page is 1. Trace how parameter conversion affects the page value; done means the first-page query returns results without a TypesenseQueryError. Confirm the behavior against the reported 0.16.0 and 0.17.0 versions.

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

Mô tả

Description

When I query with "page": 1, then Exception: TypesenseQueryError: {'code': 400, 'error': 'Parameter 'page' must be an unsigned integer.'} is returned

It seems like following line is causing problem (Here is the link to the code. https://github.com/typesense/typesense-python/blob/e22e31df314371b41cc57527c4583f3451a2f63d/typesense/api_call.py#L139C1-L139C1 )

# typesense-python/typesense/api_call.py:139-140
if params[key] == True:
   params[key] = 'true'

Steps to reproduce

Using typesense==0.17.0, just query anything with "page": 1

Expected Behavior

First page results should be returned.

Actual Behavior

Exception: TypesenseQueryError: {'code': 400, 'error': 'Parameter 'page' must be an unsigned integer.'}

Metadata

Typesense Version:
0.16.0, 0.17.0

OS:
macOS Ventura 13.4.1

Ngôn ngữ chính
Python
Star
247
Fork
66
Merge trung bình
22 giờ 47 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của typesense/typesense-python

Tất cả issue của typesense/typesense-python

Issue tương tự

Thêm issue về Python

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.