blockchain / service-my-wallet-v3

Blockchain Wallet API Service
https://blockchain.info/api/blockchain_wallet_api
GNU Affero General Public License v3.0
903 stars 517 forks source link

error: Unable to establish session #221

Open brunosalmeida opened 7 years ago

brunosalmeida commented 7 years ago

service-my-wallet-v3 NodeJS = v6.10.3

Im using a Debian 8 and I got this error: error: Unable to establish session.

I installed JDK and JRE 8 I installed node stable version (v6.10.3). I installed node-gyp (v6.10.3)

When I do a rest call to localhost:300, where my servicer is runnig, to get my account ballance I got the error: error: Unable to establish session.

jtormey commented 7 years ago

Are you including an API key with the request?

brunosalmeida commented 7 years ago

@jtormey yes. Im trying to send bitcoin to address A to address B.

MackAT1 commented 7 years ago

@brunosalmeida Could you solve this problem? I also get:

undefined 1495988840573 - error: Unable to establish session

even I provide a API Code..

MackAT1 commented 7 years ago

I installed the server again because npm test failed with a sha1 and sjcl problems.

After reinstall of everything npm test worked! But before I was able to run the npm test I needed to install the following

npm install mocha npm install chai npm install sinon npm install sinon-chai npm install chai-as-promised npm install sjcl npm install sha1

I also realised that a call with password and api key fails after restart the server. So first call is a password only call. When this worked, I was able to do a password and API key request.

This time, I installed java before I started to install other things

brunosalmeida commented 7 years ago

@MackAT1 I installed the package in this order:

I tried to install all this things on Windows Server 2016 but doesn't work.