-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rest API/Lambda "No space left on device" network error #13721
Comments
Hi @pjsandwich - could you give us a few more details on the environment you're testing in? Looks like you are using Expo - is this error occurring in a simulator? If so, which one? Have you tested on anything other than iOS? Thank you! |
@david-mcafee , this is on a physical iOS 13 device. Though, I'm not entirely sure what the device has to do with the API network error |
@pjsandwich, are you able to reproduce this issue on other devices (or even on a simulator)? It looks like there's a handful of discussions on this (see here for example) and this may be tied to the device itself rather than an Amplify API. Still trying to find more information on this though. |
@cwomack Unfortunately no, this has dependencies on code being run on a physical device, but this leads to part of the discussion that I mentioned earlier, I do not see this error when trying a larger chunk size and have a suspicion that because there are many requests being made and they only error out after a few hundred, sending less requests should help this, however, while AWS docs state that 10MB is the cap for api gateway, and 500MB is the cap for a lambda function, sending anything more than 0.05MB yields a "request too large" error |
@pjsandwich, it seems like this error isn't going to be something we'd cause or throw from the Amplify side. Usually this "No space left on device" error is a result of having too little free space on your local drive or possible too much in your cache. Can you check your device storage to see if you're possibly getting maxed out there? Also recommend checking to see if you have a new version of iOS possibly downloaded and awaiting installation, which can eat up more GB's of storage than expected. |
Looks like it is an error on device, oddly though the api is structuring the error so that it declares it as an axios error, having nested the actual cause of the error as part of the err.originalError.request parameter... which is such an odd way to report it |
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
REST API, GraphQL API
Amplify Version
v5
Amplify Categories
auth, function, api
Backend
Amplify CLI
Environment information
Describe the bug
I have a function that writes batches of items to dynamo db. This is invoked via rest endpoint set up with amplify. Sometimes there are 30,000+ items that need to be written, I noticed that while AWS docs state 10MB can be transmitted, this doesn't seem to work, I've had to cap each API call 0.05 MB to work. While the API calls initially start to work after some number of requests I start to see the following network error, specifically odd is that there's no status code returned and the error code under response is "The operation couldn’t be completed. No space left on device".
Expected behavior
When I make an API call I should be able to:
Reproduction steps
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
iPhone 13
Mobile Operating System
iOS 15.1
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: