You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var util = require('util'),
http = require('http'),
httpProxy = require('http-proxy');
httpProxy.createProxyServer({target:'http://localhost:9000'}).listen(8000);
var TicketManager = require("ticketman").TicketManager;
var TicketWorker = require("ticketman").TicketWorker;
var ticketWorker = null;
var mongoose = require('mongoose');
var express = require('express');
http.createServer(function (req, res, body) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.write('request successfully proxied!' + '\n' + JSON.stringify(req.headers, true, 2));
res.end();
}).listen(9000);
var ticketManager = new TicketManager("test ticket_manager", "http://localhost:3456");
// = new TicketWorker({id:1001, name:"test ticket_manager", host:"http://localhost:9000", category:"worker", consumerSecret: "bigSmalls"});
var category, content, title;
content = {
detailed: "content of ticket",
mixed: ["data"]
};
title = "test ticket " + (Date.now());
category = "sample";
ticketManager.issue(title, category, content, function (err, ticket) {
setTimeout(function(){
console.log(ticket);
console.log(err);
}, 500);
});
}).call(this);
But I am getting this error! [Error: Fail to create ticket:test ticket 1449613199454#sample, due to MongoErro r: driver is incompatible with this server version]
The text was updated successfully, but these errors were encountered:
This is my code:
But I am getting this error!
[Error: Fail to create ticket:test ticket 1449613199454#sample, due to MongoErro r: driver is incompatible with this server version]
The text was updated successfully, but these errors were encountered: