Open mvresh opened 2 years ago
@richardkapolnai-da any help is greatly appreciated. Thanks.
Update:
I deleted package-lock.json
from .ui/
and ran make daml-hub-package LEDGER_ID=[Ledger ID]
. There were no errors and I was able to deploy to DAML Hub.
Still I unable to test the functionalities of CBDC.
In the console, I could find these error logs:
index.ts:494 WebSocket connection to 'wss://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/stream/query' failed:
t.handleQueriesChange @ index.ts:494
createLedgerContext.ts:200 useStreamQueries: WebSocket connection failed.
(anonymous) @ createLedgerContext.ts:200
sample-slack.png:1 Failed to load resource: net::ERR_NAME_NOT_RESOLVED
index.ts:494 WebSocket connection to 'wss://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/stream/query' failed:
t.handleQueriesChange @ index.ts:494
3createLedgerContext.ts:200 useStreamQueries: WebSocket connection failed.
(anonymous) @ createLedgerContext.ts:200
index.ts:494 WebSocket connection to 'wss://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/stream/query' failed:
t.handleQueriesChange @ index.ts:494
4createLedgerContext.ts:200 useStreamQueries: WebSocket connection failed.
(anonymous) @ createLedgerContext.ts:200
index.ts:494 WebSocket connection to 'wss://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/stream/query' failed:
t.handleQueriesChange @ index.ts:494
4createLedgerContext.ts:200 useStreamQueries: WebSocket connection failed.
(anonymous) @ createLedgerContext.ts:200
index.ts:494 WebSocket connection to 'wss://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/stream/query' failed:
t.handleQueriesChange @ index.ts:494
6createLedgerContext.ts:200 useStreamQueries: WebSocket connection failed.
(anonymous) @ createLedgerContext.ts:200
index.ts:494 WebSocket connection to 'wss://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/stream/query' failed:
t.handleQueriesChange @ index.ts:494
6createLedgerContext.ts:200 useStreamQueries: WebSocket connection failed.
(anonymous) @ createLedgerContext.ts:200
y4ir1y9bd2z3i3ta.daml.app/:1 Access to XMLHttpRequest at 'https://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/exercise' from origin 'https://y4ir1y9bd2z3i3ta.daml.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
CentralBankFirstFlow.tsx:94 TypeError: Network request failed
at XMLHttpRequest.u.onerror (browser-ponyfill.js:480:16)
(anonymous) @ CentralBankFirstFlow.tsx:94
l @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
n @ asyncToGenerator.js:3
s @ asyncToGenerator.js:29
Promise.then (async)
n @ asyncToGenerator.js:13
u @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ CentralBankFirstFlow.tsx:81
u @ react-dom.production.min.js:14
d @ react-dom.production.min.js:14
(anonymous) @ react-dom.production.min.js:14
g @ react-dom.production.min.js:15
ue @ react-dom.production.min.js:52
oe @ react-dom.production.min.js:51
se @ react-dom.production.min.js:52
pe @ react-dom.production.min.js:56
N @ react-dom.production.min.js:287
q @ react-dom.production.min.js:19
Je @ react-dom.production.min.js:70
Xe @ react-dom.production.min.js:69
e.unstable_runWithPriority @ scheduler.production.min.js:19
Vi @ react-dom.production.min.js:122
B @ react-dom.production.min.js:287
Ge @ react-dom.production.min.js:68
VM6:1 POST https://api.projectdabl.com/data/[y4ir1y9bd2z3i3ta]/v1/exercise net::ERR_FAILED
``I'm trying to build the application using DAML Hub instructions, after installing the requisites on Ubuntu Linux.
I copied both the participants and parties JSON files into the
ui
folder and ran the following command:make daml-hub-package LEDGER_ID=[Ledger ID]
while building ui, its giving the following error: