From dadd493072b64b298de8380b966e79f6cef1c3e5 Mon Sep 17 00:00:00 2001 From: hk7math <58369628+hk7math@users.noreply.github.com> Date: Mon, 8 Mar 2021 15:53:47 +0800 Subject: [PATCH] Missing port in API_PATH Missing port in API_PATH leads to error upon websocket streaming --- app/src/services/bdb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/services/bdb.js b/app/src/services/bdb.js index 5d28400..be9b2e2 100644 --- a/app/src/services/bdb.js +++ b/app/src/services/bdb.js @@ -3,7 +3,7 @@ import bigchaindb from '../configs/bigchaindb.config.json' const protocol = bigchaindb.secure?'https://':'http://'; -const API_PATH = protocol + bigchaindb.host + bigchaindb.api +const API_PATH = protocol + bigchaindb.host + ':9984' + bigchaindb.api const conn = new driver.Connection(API_PATH); export const getTransaction = (txId) => { @@ -14,4 +14,4 @@ export const getTransaction = (txId) => { export const getBlock = (blockHeight) => { return conn.getBlock(blockHeight); -} \ No newline at end of file +}