Skip to content

Nonce too small #406

@tuloski

Description

@tuloski

Using the master (not tag 2.0.0).
When doing the auth via ws I'm getting the error: auth failed: nonce: small (FAILED)

The following is the used snippet

"use strict";
var EventEmitter = require('events').EventEmitter;
var util = require('util');
const BFX = require('bitfinex-api-node');

const bfx = new BFX({
	apiKey: 'removed',
	apiSecret: 'removed',

	ws: {
		autoReconnect: true,
		seqAudit: true,
		packetWDDelay: 10 * 1000
	}
})

const rest = bfx.rest(2, {
	// options
})

var ws = bfx.ws(2);

ws.on('error', (err) => {
	console.log("Error received: ");
	console.log(err)
})
ws.on('auth', (msg) => {
	console.log('ws: authenticated')
})
ws.on('open', () => {
	//this.wsMain.auth.bind(this.wsMain);
	ws.auth();
	console.log('open ws Bitfinex');
})
ws.on('close', () => {
	console.log('close ws Bitfinex');
})
ws.open();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions