Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29248

Post request error with correct JSON body [closed]

$
0
0

input:

curl --header "Content-Type: application/json" --request POST --data '{"email":"xyzuu@uw.edu","password":"xyzxyz", "passwordconf":"xyzxyz", "username":"iamtheuser", "firstname":"foo", "lastname":"bar"}' https://api.blabla/v1/users

out.put

curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)

I'm building a user authentication service. I keep getting this error when putting correct JSON body into a POST request for an API I created. The handler I created covers other instances (it's for user login, so if the passwords mismatch it returns an error, if the response body isn't correct it returns an error, etc). but for some reason I am getting this. :(

The API is deployed to an AWS ec2 instance and containerized with Docker.


Viewing all articles
Browse latest Browse all 29248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>