Internal Server Error | Code 500
projovi opened this issue · 8 comments
I have been trying to use the API, but keep landing on ERROR 500
What am I missing ????
maybe you can refer to https://github.com/AgoraIO-Usecase/eEducation/issues/138
@srs888001 Thanks,
But it's not the token error.
I have already Included Authorization in the header .
Content-Type : application/json
Authorization : Basic MmJkMzk3Y2Q1ZGYwNGM0MDkwMmI0ZmM0NTMwODU1NmE6ZGZh***************************
---Run In POSTMAN --
{
"msg": "Internal Server Error",
"code": 500
}
The API is a post request:https://api.agora.io/edu/v1/apps/MYAPPID/room/entry
, you can check it again.
I am using post request. Tried it again no luck !
It seems that you still use the RESTFul interface incorrectly. The parameters of the RESTFul interface post request are not directly spliced after the URL, but are put in the body.
the request body needs to use JSON
, not form-data
Worked ! Thanks