- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello..
I got the 404 error when I tried to consume /createToken...
In the code:
app.post('/createToken/', function(req, res) {
var room = req.body.room || myRoom,
username = req.body.username,
role = req.body.role;
N.API.createToken(room, username, role, function(token) {
res.send(token);
}, function(err) {
res.send(err);
});
});
The N.API never returns the token...it always returns an error.
First I installed the MCU server following the instruction for CentOS 7. I'm working with SSL certification and I copied the certificate into the ./cert folder and I run the initcert.js. Then I started the services and the example.
Any suggets?
Regards...
- Tags:
- HTML5
- JavaScript*
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page