File attachment using Node SDK
Hello, I am trying to add a new row and then attach a file to it using the smartsheet Node.js SDK.
The first part of this is no problem, I can add a row using the SDK without issue.
The problem is with uploading files, the post request from the smartsheet client takes a while to resolve and eventually I get the following error:
[Smartsheet] 2024-10-10T18:10:42.189Z[ ERROR] Response: Failure (HTTP NaN)
Error Code: NaN - Cannot read properties of undefined (reading 'status')
Ref ID: undefined
Any ideas what could cause this or how I could fix it?
Answers
-
Hi @Zdangelo,
Can you post the relevant code that you're using to upload the file? I would check the MIME type, and also make sure that you're spitting out all of the errors, even from any promise chaining.
You're not the only one who has seen this error, I also found this thread:
SSFeatures - The browser extension that adds more features into SmartSheet.
- Automatic sorting, sorting with filters, saving sort settings
- Spell checking
- Report PDF generator that supports grouped and summarized reports
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.3K Get Help
- 392 Global Discussions
- 213 Industry Talk
- 447 Announcements
- 4.6K Ideas & Feature Requests
- 141 Brandfolder
- 132 Just for fun
- 131 Community Job Board
- 453 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 292 Events
- 35 Webinars
- 7.3K Forum Archives