Error Running Performance Commission

I was using the below reference
perform-commissioning.sh

But I get HTTP ERROR 404 Not Found for every curl request except curl -s --max-time 3 -f "http://localhost:${port}/StatusPing" which is health check.

For every other request like,

curl -s -f "http://localhost:8088/bootstrap"

curl -s -f "http://localhost:8088/post-step"

I get HTTP ERROR 404 Not Found, becks of which perform_commissioning.sh is giving the below error

init | Initiating commissioning helper functions...

init | Gathering required commissioning steps:

ERROR: Unexpected Response (404) during Commissioning phase: Finalizing Gateway

HTTP/1.1 404 Not Found

Date: Tue, 25 Mar 2025 20:32:12 GMT

Referrer-Policy: strict-origin-when-cross-origin

X-Content-Type-Options: nosniff

X-Frame-Options: SAMEORIGIN

X-XSS-Protection: 1; mode=block

Cache-Control: must-revalidate,no-cache,no-store

Content-Type: text/html;charset=iso-8859-1

Content-Length: 329

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>

<title>Error 404 Not Found</title>

</head>

<body><h2>HTTP ERROR 404 Not Found</h2>

<table>

<tr><th>URI:</th><td>/post-step</td></tr>

<tr><th>STATUS:</th><td>404</td></tr>

<tr><th>MESSAGE:</th><td>Not Found</td></tr>

</table>

</body>

</html>

Since commissioning_steps_raw gets a null response from the bootstrap error, perform_commissioning skips all commissioning_steps and reaches finalize step and this error appears.

Ignition Version: 8.1.47