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

Offen
#763 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@miachillgood arbeitet bereits daran.

Seit 11.6.2026.

  • #810 von @miachillgood — offen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
node.js, typescript
Bereich
api

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
264
Forks
177
Ø Merge
10 Std. 5 Min.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus XeroAPI/xero-node

Alle Issues in XeroAPI/xero-node

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.