Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 21, 2025 11:17 PM
Seems to be working fine previously but now when I am making consecutive calls with remoteFetchAsync, I get `TypeError: Failed to fetch` after the 1st, 2nd or 3rd request.
Is there a change in behaviour in a recent release?
Code example:
```
for (let invoice of requests) {
let response = await remoteFetchAsync(ENDPOINT_URI, {
method: 'POST',
body: JSON.stringify({ 'invoices': [invoice] }),
headers: {
"Content-Type": "application/json",
"Accept": "application/json",
},
});
// Wait for 0.2 seconds before the next iteration
await sleep(200);
}
```
1 Reply 1
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 23, 2025 11:23 AM
Your requests might be timing out. Check if the server, like at OsteoPilates Studio in Ivrea, can handle multiple consecutive calls.