"Unable to parse request body", WinTerminal (Learn Tutorial>CRUD>Create New User)

I’m following the tutorial at Perform CRUD Operations with Providers | Terraform - HashiCorp Learn

So far, I’ve been using the Windows Terminal on a Win10 x64 machine.

At the step “Create new HashiCups user”, it offers to copy and run this command:

 curl -X POST localhost:19090/signup -d '{"username":"education", "password":"test123"}'

Whenever I do that, I’m told “Unable to parse request body”.

What am I missing?

Thank you

Windows shells, both PowerShell and cmd.exe, have different quoting rules to conventional Unix shells.

PowerShell also steals the name curl and remaps it to an internal command with very different options.

In order to follow this tutorial, you need to be using a Unix shell such as bash, or you need to rewrite many of the commands to cope with Windows’ details.

You could, for example, install Ubuntu in Windows Subsystem for Linux, or install Cygwin.

1 Like

Dear maxb:

Thank you for the quick and useful response. I switched to Cygwin and am back in business.

Have a great day!