Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating new Ticket #11

Closed
darmie opened this issue Dec 8, 2015 · 0 comments
Closed

Error creating new Ticket #11

darmie opened this issue Dec 8, 2015 · 0 comments

Comments

@darmie
Copy link

darmie commented Dec 8, 2015

This is my code:

    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]

@darmie darmie closed this as completed Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant