Invoice Attachment Upload Fails with 500 Server Error (when filename contains spaces)

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

@miachillgood đang làm issue này rồi.

Từ ngày 11/6/2026.

  • #810 của @miachillgood — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
api

Hướng nghiên cứu

Start from the createInvoiceAttachmentByFileName method in the accounting API client and reproduce with a filename that has a trailing space to confirm the 500. Pull request #810 is already open against this issue, so check its diff and discussion before touching code. Done means the call either trims the filename or returns a clear client-side error, as the expected-behavior section asks.

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

Mô tả

SDK you're using (please complete the following information):

  • Version : 4.0.0

Describe the bug
accountingApi.createInvoiceAttachmentByFileName throws 500 error if filename contains space

To Reproduce
Steps to reproduce the behavior:

  • use the accountingApi.createInvoiceAttachmentByFileName to upload a file with a filename with spaces at the end

Expected behavior
Should say appropriate error message or trim the filename before uploading.

Ngôn ngữ chính
TypeScript
Star
264
Fork
177
Merge trung bình
10 giờ 5 phút
Pull request đã merge (30 ngày)
5

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

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 XeroAPI/xero-node

Tất cả issue của XeroAPI/xero-node

Issue tương tự

Thêm issue về TypeScript

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.