Javascript 如何处理KeyTooLongError Node.js(AWS)?

Javascript 如何处理KeyTooLongError Node.js(AWS)?,javascript,node.js,amazon-web-services,amazon-s3,Javascript,Node.js,Amazon Web Services,Amazon S3,我正试图从我的S3服务器获取一些图像,但其中一些图像的URL非常大。我怎么能下载这些图片,即使有大的网址 代码: 调试: DEBUG [03314cb6] Download issue DEBUG [03314cb6] { [KeyTooLongError: Your key is too long] DEBUG [03314cb6] message: 'Your key is too long', DEBUG [03314cb6] code: 'KeyTooLo

我正试图从我的S3服务器获取一些图像,但其中一些图像的URL非常大。我怎么能下载这些图片,即使有大的网址

代码:

调试:

DEBUG [03314cb6]    Download issue
DEBUG [03314cb6]    { [KeyTooLongError: Your key is too long]
DEBUG [03314cb6]      message: 'Your key is too long',
DEBUG [03314cb6]      code: 'KeyTooLongError',
DEBUG [03314cb6]      time: Tue Apr 21 2015 17:10:51 GMT-0400 (EDT),
DEBUG [03314cb6]      statusCode: 400,
DEBUG [03314cb6]      retryable: false }

是否确实存在具有该名称的密钥?这是不可能的。
DEBUG [03314cb6]    Download issue
DEBUG [03314cb6]    { [KeyTooLongError: Your key is too long]
DEBUG [03314cb6]      message: 'Your key is too long',
DEBUG [03314cb6]      code: 'KeyTooLongError',
DEBUG [03314cb6]      time: Tue Apr 21 2015 17:10:51 GMT-0400 (EDT),
DEBUG [03314cb6]      statusCode: 400,
DEBUG [03314cb6]      retryable: false }