I’m currently upgrading from v5 to v6 of amplify and there are breaking changes. One is the API call. I can’t find a way to add timeout on post method. The cypress tests fails because we are expecting a certain timeout time which is 2mins.
This is the v5
post(apiName, path, options: {headers, body, timeout});
This is v6
post({apiName, path, options: {headers, body}});
Adding timeout on options doesn’t work so I’m not sure where to put it now after the upgrade.
The timeout for Cypress tests is up to 5 seconds only so we can test the timeout response faster but the new API doesn’t accept or reads the timeout property. I didn’t remove it from the options in the API call but it seems not working.
Nats Elayron is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.