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
Hi @manju16832003 s3.getObject and almost all other operations are initialized and bound to AWS object at runtime, so you cannot find the function. They are just not there yet. But it's available after you instantiate the s3 client.
consts3=newAWS.S3({region: 'region'});console.log('promise is a function: ',s3.getObject(params).promise);
I don't have the information of where this error is raised. But I write a simplified mock function that should work:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
lockbot
locked as resolved and limited conversation to collaborators
Sep 28, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
guidanceQuestion that needs advice or information.
When I try to mock, s3.getObject(...).promise, I get the following error.
The text was updated successfully, but these errors were encountered: