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

Aperta
#763 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@miachillgood ci sta già lavorando.

Dal 11/6/2026.

  • #810 di @miachillgood — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
264
Fork
177
Merge medio
10h 5m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di XeroAPI/xero-node

Tutte le issue di XeroAPI/xero-node

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.