N
Nuxt17mo ago
Rifat

Nuxt 3 API response error

Why do I get this if I send bulk request to the server?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="refresh" content="2">
<title>Reloading server...</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico/css/pico.min.css">
</head>
<body>
<main class="container">
<article>
<header>
<h2>Reloading server...</h2>
</header>
<progress></progress><script>document.querySelector('progress').indeterminate=true</script>
<footer>
Check console logs for more information.
</footer>
</article>
</main>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="refresh" content="2">
<title>Reloading server...</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico/css/pico.min.css">
</head>
<body>
<main class="container">
<article>
<header>
<h2>Reloading server...</h2>
</header>
<progress></progress><script>document.querySelector('progress').indeterminate=true</script>
<footer>
Check console logs for more information.
</footer>
</article>
</main>
</body>
</html>
I've tested with 2000 requests and only 1322 request passed
4 Replies
warflash
warflash17mo ago
Is that the dev server?
manniL
manniL17mo ago
Sounds like But also with a normal server - it is still node and can’t scale indefinitely
warflash
warflash17mo ago
Yeah, node absolutely has its limits If it's the dev server (which it 99% is) then it dropping requests on load testing is perfectly reasonable as that's not what it's built for. @Rifat On the off chance you are experiencing that on a built and deployed server however that's another discussion as you'd want a more graceful error for sure
Rifat
Rifat17mo ago
Yeah. It was a dev server.
Want results from more Discord servers?
Add your server