You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the WriteGetObjectResponse method, I get the following error MethodNotAllowed: The specified method is not allowed against this resource.
Is the issue in the browser/Node.js?
Node.js
If on Node.js, are you running this on AWS Lambda?
Yes
Details of the browser/Node.js version
Lambda Node Runtime 14.x
Expected behavior
It should return TEST however it throws
2021-03-24T12:15:46.042Z df108614-2c61-46a6-87a4-965e5fcbed95 ERROR WRITE GET OBJECT FAILED MethodNotAllowed: The specified method is not allowed against this resource.
at Request.extractError (/var/task/node_modules/aws-sdk/lib/services/s3.js:712:35)
at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
at Request.emit (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
at Request.emit (/var/task/node_modules/aws-sdk/lib/request.js:688:14)
at Request.transition (/var/task/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/var/task/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /var/task/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/var/task/node_modules/aws-sdk/lib/request.js:690:12)
at Request.callListeners (/var/task/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
code: 'MethodNotAllowed',
region: null,
time: 2021-03-24T12:15:46.041Z,
requestId: 'RQKY7099ES64PZRZ',
extendedRequestId: '2LO2pWksxx8RNSsko7VL299wDuA65uGsOZH6SaHpCDvBWRDmw+x1khsJYZ2ZPGU5lXvY/R2Jt4g=',
cfId: undefined,
statusCode: 405,
retryable: false,
retryDelay: 3.0760893896501385
}
The text was updated successfully, but these errors were encountered:
Thanks for your sample @micheleriso, it was quite helpful.
Meanwhile, I notice this issue was fixed in 2.876.0.
I got a sample running and no workaround required.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
When using the WriteGetObjectResponse method, I get the following error
MethodNotAllowed: The specified method is not allowed against this resource.
Is the issue in the browser/Node.js?
Node.js
If on Node.js, are you running this on AWS Lambda?
Yes
Details of the browser/Node.js version
Lambda Node Runtime 14.x
SDK version number
v2.870.0
To Reproduce (observed behavior)
Expected behavior
It should return
TEST
however it throwsThe text was updated successfully, but these errors were encountered: