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
I am getting this error when I connect with APikey/secret. Unable to connect: TypeError: Cannot read property 'add' of undefined
'use strict';varSwaggerClient=require("swagger-client");var_=require('lodash');varBitMEXAPIKeyAuthorization=require('./lib/BitMEXAPIKeyAuthorization');require('dotenv').config();newSwaggerClient({// Switch this to `www.bitmex.com` when you're ready to try it out for real.// Don't forget the `www`!url: 'https://testnet.bitmex.com/api/explorer/swagger.json',usePromise: true}).then(function(client){//console.log(client);// Comment out if you're not requesting any user data.client.clientAuthorizations.add("apiKey",newBitMEXAPIKeyAuthorization(process.env.BITMEX_API_KEY,process.env.BITMEX_API_SECRET));// Print client capabilities//}).catch(function(e){console.error("Unable to connect:",e);})
The text was updated successfully, but these errors were encountered:
This sounds like it might be an installation issue. You might try re-installing the swagger-client module. Are there any steps you go through to reproduce the problem?
I am getting this error when I connect with APikey/secret.
Unable to connect: TypeError: Cannot read property 'add' of undefined
The text was updated successfully, but these errors were encountered: