echoing-zoo-43852
04/27/2022, 10:55 PM<http://localhost:3000/signup>
and now it returns that html. Am I wrong in thinking I'd get json back like shown here?proud-plumber-24205
04/28/2022, 6:55 AMproud-plumber-24205
04/28/2022, 6:59 AMechoing-zoo-43852
04/28/2022, 11:52 PMproud-plumber-24205
04/29/2022, 7:26 AMproud-plumber-24205
04/29/2022, 7:29 AMechoing-zoo-43852
05/03/2022, 1:33 AMfn sendRegistration {|email passw|
var cookie = (mktemp)
var first = (curl -s -X GET --cookie-jar $cookie -H "Accept: application/json" "<https://ory.zenvolution.tech/self-service/registration/browser>" | from-json)
curl -i --cookie $cookie -X POST $first[ui][action] -H 'Content-Type: application/x-www-form-urlencoded' -d 'method=password&traits.email='$email'&password='$passw'&csrf_token='$first[ui][nodes][0][attributes][value]
curl -s -S -i -X GET --cookie $cookie --cookie-jar $cookie -H "Accept: application/json" '<https://ory.zenvolution.tech/api/kratos/public/self-service/registration/flows?id='$first[id]>
}
If I give this shell function a bad email and password I'm hoping the last curl call to the API would give me the error json, but I believe I do not have the URL correct. It's difficult to figure this out this the documentation you pointed to, plus I believe it is referring to kratos rather then cloud (I know it's technically the same, but there seems to be some differences). Can you help me get the right URL for the API call?proud-plumber-24205
05/03/2022, 2:33 PM