New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage.list crash: TypeError: Cannot read property 'map' of undefined #5323
Comments
@Quix0tic, can you also post what you see in your network tab (request and response) for the list API request. |
I get the following response: <?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>[mybucket]-dev</Name><Prefix>public//</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><IsTruncated>false</IsTruncated></ListBucketResult> I replaced the bucket name with [mybucket]. |
I just hit the same problem Versions
Config
Config file
API call
Request
Request headers
Response headers
Response
Dev tools console output
The authenticated user IAM role for Cognito has permissions to the bucket
|
I am also getting this error |
The issue is when the list operation returns empty results. I've a PR opened to correctly handle that case. Thanks everyone for providing the necessary information to fix this. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Hey, I have this project using react that is not able to list items in S3 storage but is able to put.
Error stack
The text was updated successfully, but these errors were encountered: