One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
charliefjohnson
5 years agoNew member | Level 2
Error Uploading File
We're seeing the following error when trying upload a file:
[36mbir-server-app_1 |[0m Error : { FetchError: request to https://content.dropboxapi.com/2/files/upload failed, reason: getaddrinfo EAI_AGAIN content.dropboxapi.com content.dropboxapi.com:443
[36mbir-server-app_1 |[0m at ClientRequest.<anonymous> (/usr/src/app/node_modules/cross-fetch/node_modules/node-fetch/index.js:133:11)
[36mbir-server-app_1 |[0m at ClientRequest.emit (events.js:198:13)
[36mbir-server-app_1 |[0m at TLSSocket.socketErrorListener (_http_client.js:401:9)
[36mbir-server-app_1 |[0m at TLSSocket.emit (events.js:198:13)
[36mbir-server-app_1 |[0m at emitErrorNT (internal/streams/destroy.js:91:8)
[36mbir-server-app_1 |[0m at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
[36mbir-server-app_1 |[0m at process._tickCallback (internal/process/next_tick.js:63:19)
[36mbir-server-app_1 |[0m name: 'FetchError',
[36mbir-server-app_1 |[0m message:
[36mbir-server-app_1 |[0m 'request to https://content.dropboxapi.com/2/files/upload failed, reason: getaddrinfo EAI_AGAIN content.dropboxapi.com content.dropboxapi.com:443',
[36mbir-server-app_1 |[0m type: 'system',
[36mbir-server-app_1 |[0m errno: 'EAI_AGAIN',
[36mbir-server-app_1 |[0m code: 'EAI_AGAIN' }
Not sure where to look as to find the issue. This just happens on a single server. We have a similar server that is running the same app and it works just fine.
- Greg-DB
Dropbox Staff
Based on "getaddrinfo EAI_AGAIN" it looks like this is a DNS issue, so I recommend debugging the DNS setup being used by the affected server to see why it may not be able to look up the Dropbox API content server hostname. You may need to contact the administrator of your DNS server (or switch to a different one).
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 4 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!