【发布时间】:2021-01-18 07:39:24
【问题描述】:
我是 Flutter 的新手,正在尝试将数据发送到服务器。我关注了tutorial,但它没有工作它给了我一个状态码500:
void signUp() async {
http.Response response = await http.post(
"https://my-shop-server.herokuapp.com/api/v1/users/signup",
body:jsonEncode(<String, String>{
"name" :"test" ,
"email" : "test180@gmail.com" ,
"password" : "qwert" ,
"passwordConfirm" : "qwert"
})
);
print(response.body);
print(response.statusCode);
}
【问题讨论】:
-
我投票结束这个问题,因为它与密码长度不足有关。