Branch Information
Branch: load_tests_pglez82
In gatling-simulations:
- YoviEn1aLoadTest is the java file for the test
- createuser_body.json should be in resources next to the other requests
Description
During load testing, the POST Create User endpoint is failing consistently with a 500 Internal Server Error. While static assets (CSS, JS, images) and the home page load correctly, no users are being successfully created.
===============================================================================
2026-04-22 12:42:03 134s elapsed
---- Requests ------------------------------------------------------------------
> Global (OK=1332 KO=333 )
> GET Home Page (OK=333 KO=0 )
> yovi_en1a_logo.png (OK=333 KO=0 )
> index-lTpzjcFO.css (OK=333 KO=0 )
> index-ADMSZrq7.js (OK=333 KO=0 )
> POST Create User (OK=0 KO=333 )
---- Errors --------------------------------------------------------------------
> status.find.is(200), but actually found 500 333 (100,0%)
And in the logs:
TypeError: Cannot destructure property 'username' of 'req.body' as it is undefined.
users | at /app/users-service.js:99:11
I have in the resources a file createuser_body.json in resources
i tried this json files:
{
"username": "#{username}",
"email": "#{email}",
"password": "#{password}",
}
and this other
{
"username": "#{username}",
"email": "#{email}",
"password": "#{password}",
"avatarUrl": "default.png"
}
I generate users here:
(Supplier<Map<String, Object>>) () -> {
String uuid = UUID.randomUUID().toString();
Map<String, Object> user = new HashMap<>();
user.put("username", "user_" + uuid);
user.put("email", "test_" + uuid + "@yovi.com");
user.put("password", "Password123!");
return user;
}
and feed them to the event.
Branch Information
Branch: load_tests_pglez82
In gatling-simulations:
Description
During load testing, the POST Create User endpoint is failing consistently with a 500 Internal Server Error. While static assets (CSS, JS, images) and the home page load correctly, no users are being successfully created.
And in the logs:
I have in the resources a file createuser_body.json in resources
i tried this json files:
and this other
I generate users here:
and feed them to the event.