You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Amitkumar Maheshwari <am...@automationanywhere.com> on 2023/07/28 17:55:49 UTC

Unable to make rest api calls to ignite on local host

I am referring this document https://ignite.apache.org/docs/latest/setup

I have downloaded the Ignite 2.15.0 binaries

and followed every steps of setting up and rest-api document

https://ignite.apache.org/docs/latest/setup https://ignite.apache.org/docs/latest/quick-start/restapi#ignite-quick-start-guide-for-rest-api

I have java version 18

I can see when I ran two nodes with default configurations (as suggested in docs), i can see the proper command line entries.

However, when i try to make a rest call,

by curl http://localhost:8080/ignite?cmd=version

it fails with the error Error: connect ECONNREFUSED 127.0.0.1:8080

Even though the document clearly saying that there isn't any additional configuration needed for it, is there anything I am missing?


Thanks and Regards,
Amitkumar Maheshwari  |  Sr, Software Engineer
www.automationanywhere.com/in<http://www.automationanywhere.com/in>
Automation Anywhere
Ground Floor (North West Part) Alembic Business Park Premises Alembic Road Gorwa.



Re: Unable to make rest api calls to ignite on local host

Posted by Pavel Tupitsyn <pt...@apache.org>.
Answered on StackOverflow [1]:

"it's required to move the ignite-rest-http module from the
{IGNITE_HOME}/libs/optional/ directory to the {IGNITE_HOME}/libs to enable
REST API."

[1]
https://stackoverflow.com/questions/76790017/unable-to-make-rest-api-calls-to-ignite-on-local-host

On Fri, Jul 28, 2023 at 8:56 PM Amitkumar Maheshwari <
amitkumar.maheshwari@automationanywhere.com> wrote:

> I am referring this document https://ignite.apache.org/docs/latest/setup
>
> I have downloaded the Ignite 2.15.0 binaries
>
> and followed every steps of setting up and rest-api document
>
> https://ignite.apache.org/docs/latest/setup
> https://ignite.apache.org/docs/latest/quick-start/restapi#ignite-quick-start-guide-for-rest-api
>
> I have java version 18
>
> I can see when I ran two nodes with default configurations (as suggested
> in docs), i can see the proper command line entries.
>
> However, when i try to make a rest call,
>
> by curl http://localhost:8080/ignite?cmd=version
>
> it fails with the error Error: connect ECONNREFUSED 127.0.0.1:8080
>
> Even though the document clearly saying that there isn't any additional
> configuration needed for it, is there anything I am missing?
>
>
>
>
>
> Thanks and Regards,
>
> *Amitkumar Maheshwari ** | * Sr, Software Engineer
>
> www.automationanywhere.com/in
>
> Automation Anywhere
>
> Ground Floor (North West Part) Alembic Business Park Premises Alembic Road
> Gorwa.
>
>
>
>
>