Comments (22)
Thanks for the report, we're looking into it. Also, we'll update Readme today/tomorrow.
from data-service.
@dvshur Okay thank you!!!
Once update kindly let me know.
from data-service.
Hi, @narmathamuthu. We have added some logging to see your error more clearly. It's still in develop
branch, we'll publish it to Docker registry after QA will be sure it's stable.
However, you could try it right now by cloning this repo, develop
branch, and building Docker image as in https://github.com/wavesplatform/data-service#docker, step 1. Then try to launch it as you tried yesterday.
Once we have the additional logging output, it should be trivial to understand what is wrong.
from data-service.
Also, we've updated NodeJS part of Readme.md to include necessary steps if you decide to go that way. Again, see develop
branch (it's a default one in this repo).
from data-service.
Can i clone this repo ( https://github.com/wavesplatform/data-service.git ) ?
Where to find develop branch ?
from data-service.
Yes, you can clone this repo. Develop branch is the default one, if you do a simple git clone https://github.com/wavesplatform/data-service.git
it should give you the branch you need.
from data-service.
@dvshur Okay fine.
Now i got another one issue ( PFA ) .
Error : TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
from data-service.
Hi, sorry for making you wait for the resolution. The problem with your launch is that you haven't specified a correct matcher address to load the matcher settings from. While we have provided a default matcher address for mainnet, if you're running a custom network, or a different matcher, that could have been a problem.
I've merged a PR #276 with the fix that did the following:
- MATCHER_ADDRESS_URL env var became optional
- if not specified, any matcher would be considered unknown, so any assets order in all pairs would be allowed
- added more clear error message if MATCHER_ADDRESS_URL would be specified, but the service would not be able to load settings on launch
Could you please try again on the latest develop
branch (again, default for cloning) and let me know what output you see?
from data-service.
@dvshur .
Okay fine now i got response ( PFA ).
But i can't get docsUrl. And also i have run the docs command ( docker run --rm -d -p 8080:8080 -e SWAGGER_JSON=/app/openapi.json wavesplatform/data-service-docs ) on separate port number ( PFA ) .
I don't know how to combine both.
Then i have run following this Url ( http://localhost:3000/v0 ) , i got Not Found Issue.
How to run those functionality ( Like - https://api.testnet.wavesplatform.com/v0/transactions/exchange?matcher=3N8aZG6ZDfnh8YxS6aNcteobN8eXTWHaBBd&amountAsset=WAVES&priceAsset=DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn ) in our local.
Can you explain please ?
from data-service.
The data service itself doesn't know if it's /v0
or not. That routing is done by an external router/proxy (you can use Nginx, for example). Routing to the documentation is also done by the same router.
To use the service functionality without a router, simply remove the /v0
part. Something like:
http://localhost:3000/transactions/exchange
from data-service.
@narmathamuthu, how is it going with the service? Have you succeeded in launching it?
from data-service.
@dvshur sorry for long delay.
Yes we are launching it our local machine.
Now we are going to config Daemons ( Candles , Pairs ) .
Can you explain please how to config ( Both - data-service , Candles & Pairs ) .
If possible to run both functionality in same host & port ?
from data-service.
Hi, @narmathamuthu.
Yes, you can config data-service and daemons in same host and port.
In fact, you can just run daemons using command docker run --env-file=variables.env wavesplatform/data-service-candles
(or wavesplatform/data-service-pairs) with the same .env file, that is used for data-service.
If you want, you can add specific env variables to your .env file for fine daemons configuration:
For candles daemon:
CANDLES_UPDATE_INTERVAL=2500
CANDLES_UPDATE_TIMEOUT=20000
RECALCULATE_ALL_CANDLES_ON_START=false
The last one variable should be true
only in case, when you start candles daemon at first time or with long delay from the last candles daemon stop. Otherwise daemon will fall on CANDLES_UPDATE_TIMEOUT
.
For pairs daemon:
PAIRS_UPDATE_INTERVAL=2500
PAIRS_UPDATE_TIMEOUT=20000
from data-service.
@Jlewka
Okay thankyou !!!
I have run above two commands ( data-service-candles & data-service-pairs ) .
I go following response ( PFA )
data-service -candles
data-service-pairs
It correct or not ?
May i know the next step please.
Then how to check above functionality working or not ?
Please tell me.
from data-service.
No, it's incorrect.
It looks like you have not running instance of PostgreSQL or its running not locally for daemons or with specific port (not 5432).
Both data-service and daemons have to be able to connect to PostgreSQL, please, check this.
When daemons will work correctly you will see endless stream of success update message in their output logs.
from data-service.
@Jlewka Okay we will check it let you know.
from data-service.
@narmathamuthu have you managed to launch the service?
from data-service.
@dvshur .
Yes we are running in our local system only.
Still now we can't run data-service-candles & data-service-pairs.
Kindly check my .env file ( PFA )
We are facing following issue
data-service -candles
data-service-pairs
The data-service-candles and data-service-pairs its mandatory or not ?
from data-service.
@narmathamuthu, firstly, data-service-candles
and data-service-pairs
are not mandatory. You need them only if you want to use the corresponding endpoints: /candles
, /pairs
.
Secondly, are you using the same env file for the service itself and the daemons? It is strange if you're able to use the data service, but unable to launch the daemons with the same Postgres config — after all, they're supposed to use the same database.
from data-service.
@narmathamuthu is the problem still relevant? Last comment was 24 days ago, I would like to either finish solving it or close the issue.
from data-service.
@dvshur sorry for delay. Okay fine we will check and close the issue ASAP.
from data-service.
Closing because of long inactivity. Feel free to reopen if any more questions arise.
from data-service.
Related Issues (16)
- Error: Cannot find module 'folktale/Maybe' HOT 2
- กู้กระเป๋าคืน HOT 2
- data by invokeScript isn’t available by AP HOT 3
- Very old transfers not found in transfers endpoint HOT 4
- Install package /v0/docs/ HOT 2
- [BUG] Prototype Override Protection Bypass HOT 3
- How to get data-service on our private node ? HOT 6
- [FEATURE REQUEST] Add old directives to save backward compatibility. HOT 7
- [BUG] - Data Inconsistancy HOT 3
- [BUG] Unit tests all are relative to executing time-zone. Only works if local machine running is UTC+3 HOT 5
- [BUG] Passing Build Issue HOT 4
- [BUG] Candles not calculating? HOT 2
- Docs loads but everything returns 404. HOT 3
- [FEATURE REQUEST] Support tx 18 InvokeScript the same way as regular invokeScript HOT 3
- endpoints outside of /v0 HOT 3
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 data-service.