服务器访问返回500
来源:1-5 Android Studio开发Flutter实用技巧(持续更新)

疯狂的loser
2025-06-08
I/flutter ( 3877): url:https://api.devio.org/uapi/user/registration?userName=ljl&password=199280&imoocId=3302779&orderId=3206
I/flutter ( 3877): hi_net:{url:https://api.devio.org/uapi/user/registration?userName=ljl&password=199280&imoocId=3302779&orderId=3206}
I/flutter ( 3877): url:https://api.devio.org/uapi/user/registration?userName=ljl&password=199280&imoocId=3302779&orderId=3206
I/flutter ( 3877): hi_net:{NoSuchMethodError: The getter ‘data’ was called on null.
I/flutter ( 3877): Receiver: null
I/flutter ( 3877): Tried calling: data}
I/flutter ( 3877): hi_net:{NoSuchMethodError: The getter ‘data’ was called on null.
I/flutter ( 3877): Receiver: null
I/flutter ( 3877): Tried calling: data}
I/flutter ( 3877): hi_net:{null}
I/flutter ( 3877): Instance of ‘HiNetError’
Error:
Response body
{
“timestamp”: “2025-06-06T02:15:28.802+0000”,
“status”: 500,
“error”: “Internal Server Error”,
“message”: “No message available”,
“path”: “/uapi/user/registration”
}
Response headers
connection: keep-alive
content-type: application/json;charset=UTF-8
date: Fri, 06 Jun 2025 02:15:28 GMT
server: nginx/1.16.1
transfer-encoding: chunked
1回答
-
CrazyCodeBoy
2025-06-10
注册接口只支持post请求,检查下请求是不是用的post
032025-06-11
相似问题