Unable to upload documents from Readable stream
When I perform an export, the file is not attached to the invoice. I have a unit test that proves that the document stream passed into the updateInvoiceAttachmentByFileName function matches the byte array of the test file and that is passing, so I am confident that the issue is with the SDK.
Example effected invoices:
-
22e3d6d4-3442-444b-b109-fa359bcacef6 -
3c425103-1d67-4189-9b1f-3ef1baf286e1
The below examples were imported into Xero, the first using the latest version of the xero-node SDK and the second using version 4.17.0
Additionally, I am seeing a console.log message JSON parse body failed which looks to be coming from the SDK here
If I can help any further please let me know
Originally posted by @csharpsi in https://github.com/XeroAPI/xero-node/issues/631#issuecomment-2163016589
PETOSS-446
Thanks for raising an issue, a ticket has been created to track your request
we experince the same issue, when do you estimate to fix the issue?
Same here
Hey @csharpsi @elena-dev-thought @MiscellaneousStuff
The issue has been addressed in our latest xero-node v9.0.0.
Please try using the latest version and let us know if the issue still persists.
Hi @sangeet-joy-tw Thanks for the update. Looks like it's working nicely with v9