I'm learning about webtask.io and so I've coded a simple REST api (I'm not using Express.js here but maybe I should). It's a little webtask.io app that connects to an mlab MongoDB database and retrieves todos from a tasklist collection. The issue is that I'm getting this error:

{"code":404,"message":"**unable to resolve jtn to webtask token**","req\_id":"1504385487318.83712"}"

Any idea how to fix this error? Here is a snippet of my code:

```
var MongoClient = require('mongodb').MongoClient;
...
module.exports = 
  function (ctx, req, res) {
    // write the header and set the response type as a json
    res.writeHead(200, { 'Content-Type': 'application/json' });
    MongoClient.connect(ctx.data.MONGO_URL, function (err, db) {
     if (err) {
        res.writeHead(400, { 'Content-Type': 'application/json'});
        res.end(JSON.stringify(ERROR_RESPONSE.CONNECT_ERROR));
     } else {
      switch(req.method) {
       case 'GET':
        db.collection('tasklist').find({}).sort({"dateAdded" : -1}).toArray(function(err, docs) {
         if (err) {
            res.writeHead(400, { 'Content-Type': 'application/json'});
            res.end(JSON.stringify(ERROR_RESPONSE.GET_ERROR));
         } else {
           res.end(JSON.stringify(docs));
         }
         }); //toArray   

        break;
       //post, delete, and put are in here
      } //switch
    } //else no error 
    db.close();
    }); //Mongo connect
    res.end(); 
  } //export function

```