Comments (14)
-
Did you run
npm run start-test-backend
inew-utils-demo
to start backend service (this information was missing in the guide)? -
After starting backend, when you go to
http://0.0.0.0:3030
orhttp://localhost:3030
orhttp://127.0.0.1:3030
do you see following text:
Cannot GET /
?
If answer to Question 2 is yes, then it means backend should be working correctly.
I've just cloned ew-utils-demo
and tried the instructions (updated them as I worked) and I managed to deploy without errors:
Regarding your questions:
What should be the value of API_BASE_URL?
It should be address where npm run start-test-backend
command is running a backend server. This URL should be accessible in browser. For example localhost:3030
should return:
Cannot GET /
Are there any other additional configurations beyond connection-config.json?
There is configuration of ew-origin-ui
, a need to change .env.dev
or .env.prod
depending what you're using. More info added to the wiki page.
I am using the default accounts already defined under config/contractConfig.json for Volta deployment. Is that fine?
Yes, they are fine. If you find yourself missing some Volta tokens for gas use the faucet: https://voltafaucet.energyweb.org
from origin.
Thank you. How many tokens/min gas I should have to bring up Origin UI.
from origin.
Less than 1 token should be enough for deploying Origin multiple times, while faucet gives 1 token.
It's unlikely that you will hit problems with not having enough tokens. The gas price is low on chain.
from origin.
Ok. thank you. The :3030 URL is working for me in the browser, the account has enough tokens, but I still see the attached error. Could you please help what else could be causing the issue and how do I troubleshoot it. The project was working fine when I had it local.
from origin.
I am using the default accounts that come with configuration. Should those be diffferent?
from origin.
Please see the log errors.
VOLTA_ERROR.docx
from origin.
Did you choose local Ganache RPC address in MetaMask?
For example you should have localhost:8545 if you run local Ganache. If problem persists try to switch in MetaMask from local network to other network for example main net and then back to local, because MetaMask is sometimes buggy and choosing different network and reselecting local network resets it and it should work.
from origin.
Also, I want to make sure you're running correct versions. Could you share output of these commands ran in ew-utils-demo
directory?
git status
git diff
git log
node -v
npm -v
from origin.
Hi.
ew-utils-demo-master$ git status
fatal: Not a git repository (or any of the parent directories): .git
ew-utils-demo-master$ git diff
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index]
ew-utils-demo-master$ git log
fatal: Not a git repository (or any of the parent directories): .git
ew-utils-demo-master$ node -v
v10.9.0
ew-utils-demo-master$ npm -v
6.2.0
ew-utils-demo-master$
It was copied as zip from GIT. It's fully functional locally.
from origin.
Did you choose local Ganache RPC address in MetaMask?
Response: No I completely shut down local Ganache, If I start it, then contracts deploy on local despite of providing the URL of Volta.
from origin.
I keep on getting attached VOLTA error. Should I change anything for it?
from origin.
Hello, commands: git diff, git log, git status
are very important so I can see the changes you have in your setup and also verify that you're using latest versions.
Could you please start the process from inside directory which contains Git directory (it is recommended way) instead of copying it from ZIP?
No I completely shut down local Ganache, If I start it, then contracts deploy on local despite of providing the URL of Volta.
This looks like a sign that not everything is configured.
I keep on getting attached VOLTA error. Should I change anything for it?
No, you can keep using Volta.
BTW. For me the only change I had to make, and this is my git diff
output for working setup is this:
diff --git a/connection-config.json b/connection-config.json
index f1fa6cc..bdacb71 100644
--- a/connection-config.json
+++ b/connection-config.json
@@ -1,6 +1,6 @@
{
"develop": {
- "web3": "http://localhost:8545",
+ "web3": "https://volta-rpc.energyweb.org",
"deployKey": "d9066ff9f753a1898709b568119055660a77d9aae4d7a4ad677b8fb3d2a571e5"
}
}
\ No newline at end of file
(END)
from origin.
I have emailed the requested info. Thanks.
from origin.
With fixed configuration and getting latest code for UI from GIT, I am able to bring the UI up. However I am not able to switch between users anymore - it's always guest. I have sent out the output of git diff, status and log. Thanks.
from origin.
Related Issues (20)
- Dependency Dashboard
- Docker-compose automation
- Rush build error - [Errno 2] No such file or directory: 'build:ts'
- env file are not reflected at runtime HOT 1
- revert Error: The called function should be payable if you send value and the value you send should be less than your current balance.
- [issuer-api] incorrect error reporting
- [issuer-api] `issuer_certificate_id_seq` is not working
- (node:71689) UnhandledPromiseRejectionWarning: error: column "platformOperatorPrivateKey" of relation "issuer_blockchain_properties" does not exist
- Rush update issue HOT 3
- deployment to Volta
- [bug] `common/config/rush/command-line.json` need to be updated
- broken link in the Repo's ABOUT blurb
- How to login as the admin of platform operator organization in origin platform reference implementation? And related queries. HOT 1
- BUG - ERC1888 array overrun
- As environmental and data engineer i have to highlight that these tools are not what they claim to be
- MemoryLeak due to long await in CertificateService issue method of @energyweb/origin-247-certificate package's causing, when trying to issue around 50 certificates HOT 2
- missing metadata in issuer_certificate table and multiple issues encountered while issuing certificate using '@energyweb/origin-247-certificate' CertificateService issue method
- How can I approve a device HOT 1
- Add `rush link` before `rush build`.
- Rush update issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from origin.