plutoless/eEducation

Internal Server Error | Code 500

projovi opened this issue · 8 comments

@srs888001 Thanks,
But it's not the token error.

I have already Included Authorization in the header .

Content-Type : application/json

Authorization : Basic MmJkMzk3Y2Q1ZGYwNGM0MDkwMmI0ZmM0NTMwODU1NmE6ZGZh***************************

https://api.agora.io/edu/v1/apps/MYAPPID/room/entry?appId=MYAPPID&roomName=12365214231546985&roomUuid=12365214231546985&userName=demouser&userUuid=300000000&role=2&type=2

---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.

@srs888001

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.

Attached the REQUEST.

Screenshot 2020-07-29 at 6 04 59 PM
Screenshot 2020-07-29 at 6 05 06 PM

I am using POSTMAN to send requests.

the request body needs to use JSON, not form-data

Worked ! Thanks