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

Abierto
#763 2 comentarios 0 reacciones 0 asignados Ver en GitHub

@miachillgood ya está trabajando en esto.

Desde el 11/6/2026.

  • #810 de @miachillgood — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
node.js, typescript
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
264
Forks
177
Merge medio
10 h 5 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de XeroAPI/xero-node

Todos los issues de XeroAPI/xero-node

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.