Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Bad Message 400 - Chapter 3 #16

Open
santikris2003 opened this issue Dec 18, 2021 · 2 comments
Open

Getting Bad Message 400 - Chapter 3 #16

santikris2003 opened this issue Dec 18, 2021 · 2 comments

Comments

@santikris2003
Copy link

From Chapter 3 when I execute this getting Bad Message 400 , what Im missing here ?

curl -k --cacert "$(./mkcert -CAROOT)/rootCA.pem" -d ‘{"username":"demo","password":"password"}’ -H ‘Content-Type:application/json’ https://localhost:4567/users

curl: (3) URL using bad/illegal format or missing URL

Bad Message 400

reason: Illegal character OTEXT=0xe2
@santikris2003
Copy link
Author

I have employed all the files from Chap3 -end and starting the server , running the above curl command

@NeilMadden
Copy link
Owner

It's hard to know exactly what is going wrong here, but as a guess it looks like the single quotes around parts of the command have been replaced with "smart quotes", which might be causing an issue. Try copy and pasting the following:

curl -k --cacert "$(./mkcert -CAROOT)/rootCA.pem" -d '{"username":"demo","password":"password"}' -H 'Content-Type:application/json' https://localhost:4567/users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants