Skip to content

Commit

Permalink
fix: host for node server for web client
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Aug 9, 2024
1 parent 84930c6 commit 61f0680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/tests/web/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const generateBlocks = async (blocks) => {
blocks
};

const url = `http://localhost:3000/generate_blocks`;
const url = `http://0.0.0.0:3000/generate_blocks`;

let response = await axios.post(url, body);

Expand All @@ -21,7 +21,7 @@ const depositCoin = async (address, amount) => {
amount
};

const url = `http://localhost:3000/deposit_amount`;
const url = `http://0.0.0.0:3000/deposit_amount`;

let response = await axios.post(url, body);

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/ta02-duplicate-deposits.test.js > TA02 - Duplicated Deposits > withdraw flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/ta02-duplicate-deposits.test.js:29:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pla6mhc58p7vm90hlweryy7lyzug5nweyjjlcqw4kv9vpxlqjyyksvxcq69","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/ta02-duplicate-deposits.test.js > TA02 - Duplicated Deposits > transfer flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/ta02-duplicate-deposits.test.js:126:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pqkpuwkgere90kuzm80nanp9q546ulh0jr79984r7ya92xr3l30escn8mlj","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/ta02-duplicate-deposits.test.js > TA02 - Duplicated Deposits > withdraw flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/ta02-duplicate-deposits.test.js:29:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pudmqz3ygw6hh3rr2hzlzemnpsqy38wwjh46nm2h5d05zdafcrr8qfacezq","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/ta02-duplicate-deposits.test.js > TA02 - Duplicated Deposits > transfer flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/ta02-duplicate-deposits.test.js:126:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pxc2dga7a7awryc867wf0y3zkvm82s7jmar8jwqj332sh0l9zr5dsntvh47","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/tb01-simple-transfer.test.js > TB01 - Simple Transfer > expected flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/tb01-simple-transfer.test.js:29:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pr4wxkglpy5hdgsel3ynlu8rj5dnsted9dt5wsj3p9ekfuvkzrqxs0lltse","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/tb01-simple-transfer.test.js > TB01 - Simple Transfer > expected flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/tb01-simple-transfer.test.js:29:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pfedzmm29ynqqshqcuw25rwz99c3uqgtu8dy7eu92lvw0tzesfsaqerhyth","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/tb03-simple-atomic-transfer.test.js > TB03 - Simple Atomic Transfer > expected flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/tb03-simple-atomic-transfer.test.js:40:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pcd7txahaw8uy3qcp4asj8ygxt9lnn9xeuu475s0k6ecanfca6yvqylrxd3","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/tb03-simple-atomic-transfer.test.js > TB03 - Simple Atomic Transfer > expected flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/tb03-simple-atomic-transfer.test.js:40:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pgh0zw00phwn3zlu97n7ss7ag0kx6yntla6g2yvek67dgppt6tkgqq2zs38","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/tb04-simple-lightning-latch.test.js > TB04 - Simple Lightning Latch > expected flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/tb04-simple-lightning-latch.test.js:59:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pg0hcwhmy7jctjkw46syns6tn3p9eq5g3zy49w7akwnvmlwsrfrls8mmpjh","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Check failure on line 26 in clients/tests/web/test-utils.js

View workflow job for this annotation

GitHub Actions / test

test/tb04-simple-lightning-latch.test.js > TB04 - Simple Lightning Latch > expected flow

AxiosError: Network Error ❯ XMLHttpRequest.handleError ../../../../../../../../node_modules/.vite/deps/axios.js:1581:14 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ depositCoin test-utils.js:26:20 ❯ test/tb04-simple-lightning-latch.test.js:59:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/deposit_amount', data: '{"address":"bcrt1pzqyk4f6zypsu35tcfd0thz54ulh9qyryvrd4awalttnela7gfkust8z7h4","amount":1000}' }, code: 'ERR_NETWORK', status: null }

Expand Down

0 comments on commit 61f0680

Please sign in to comment.