Git Product home page Git Product logo

Comments (22)

dvshur avatar dvshur commented on August 15, 2024

Thanks for the report, we're looking into it. Also, we'll update Readme today/tomorrow.

from data-service.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@dvshur Okay thank you!!!

Once update kindly let me know.

from data-service.

dvshur avatar dvshur commented on August 15, 2024

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.

dvshur avatar dvshur commented on August 15, 2024

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.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@dvshur

Can i clone this repo ( https://github.com/wavesplatform/data-service.git ) ?

Where to find develop branch ?

from data-service.

dvshur avatar dvshur commented on August 15, 2024

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.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@dvshur Okay fine.

Now i got another one issue ( PFA ) .

Error : TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"

Screenshot from 2019-10-23 20-52-34

from data-service.

dvshur avatar dvshur commented on August 15, 2024

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.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@dvshur .

Okay fine now i got response ( PFA ).

192 168 4 68 3000

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 ) .

Swagger UI(5)

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.

dvshur avatar dvshur commented on August 15, 2024

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.

dvshur avatar dvshur commented on August 15, 2024

@narmathamuthu, how is it going with the service? Have you succeeded in launching it?

from data-service.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@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.

stuffy-idler avatar stuffy-idler commented on August 15, 2024

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.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@Jlewka

Okay thankyou !!!

I have run above two commands ( data-service-candles & data-service-pairs ) .

I go following response ( PFA )

data-service -candles

image

data-service-pairs

image

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.

stuffy-idler avatar stuffy-idler commented on August 15, 2024

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.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@Jlewka Okay we will check it let you know.

from data-service.

dvshur avatar dvshur commented on August 15, 2024

@narmathamuthu have you managed to launch the service?

from data-service.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@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 )

image

We are facing following issue

data-service -candles

image

data-service-pairs

image

The data-service-candles and data-service-pairs its mandatory or not ?

from data-service.

dvshur avatar dvshur commented on August 15, 2024

@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.

dvshur avatar dvshur commented on August 15, 2024

@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.

narmathamuthu avatar narmathamuthu commented on August 15, 2024

@dvshur sorry for delay. Okay fine we will check and close the issue ASAP.

from data-service.

dvshur avatar dvshur commented on August 15, 2024

Closing because of long inactivity. Feel free to reopen if any more questions arise.

from data-service.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.