It only happens with the embedded preview. You won’t see that with the full page view. Not sure why but Replit does a GET after the POST and there is already a GET handler for that /name route which is expecting query params.
The issue is still there in the replit webview but the code works in a separate tab. Thankfully passing the live web url to the challenge allowed it to pass.