agora-group-calling
agora-group-calling copied to clipboard
response.statusCode gives 404?
I am using this function to get the token, passing a random channel name but it gives error 404?
Future
if (response.statusCode == 200) {
setState(() {
token = response.body;
token = jsonDecode(token)['rtcToken'];
});
} else {
print('Failed to fetch the token');
}
}
Please follow this guide to generate a token server: https://github.com/AgoraIO-Community/agora-token-service