Giter VIP home page Giter VIP logo

Comments (9)

NilanjanaBala avatar NilanjanaBala commented on May 28, 2024

thanks for your all the effort for trying to build such a nice tool. I have configure it and i could see the frequi as http://localhost:8080/

I am in difficulties how to connect with my bot? I am not sure about what to put into the user name and password as we don't create any while configure our freqtrade bot. What all capabilities does it provide? Could you please give some pointer?

from frequi.

xmatthias avatar xmatthias commented on May 28, 2024

well you MUST configure the bot to do it as explained here - which also requires a username/password (the API is disabled by default).

to get the bot running, please also configure the CORS Section with http://localhost:8080 to allow the UI to connect to the bot.

from frequi.

NilanjanaBala avatar NilanjanaBala commented on May 28, 2024

In bot config.json

"api_server": {
"enabled": true,
"listen_ip_address": "localhost",
"listen_port": 8080,
"verbosity": "info",
"jwt_secret_key": "hello",
"CORS_origins": [
"http://localhost:8080"
],
"username": "freq",
"password": "freq"
}

trying to log in : http://localhost:8080/

Getting the error as
Login failed. Please verify that the bot is running, the Bot API is enabled and the URL is reachable. You can try this by going to http://http://localhost:8080/api/v1/ping

My bot is running and i could see it form telegram but not able to see it from frequi. Not sure what i am missing

thanks

from frequi.

xmatthias avatar xmatthias commented on May 28, 2024

are both bot and UI running on the same host?
If yes, then you must switch the port of one of the 2 from 8080 to something different...

from frequi.

NilanjanaBala avatar NilanjanaBala commented on May 28, 2024

yes, its in same host. I tried the following again and getting same error

Put API url as : http://localhost:8081

frequi:
version: '3.8'
services:
frequi:
build:
context: .
dockerfile: "./Dockerfile"
image: frequi
# image: freqtradeorg/frequi:master
restart: unless-stopped
ports:
- "8080:80"
Bot:
"api_server": {
"enabled": true,
"listen_ip_address": "localhost",
"listen_port": 8081,
"verbosity": "info",
"jwt_secret_key": "hello",
"CORS_origins": [
"http://localhost:8081"
],
"username": "freq",
"password": "freq"
}

thanks

from frequi.

xmatthias avatar xmatthias commented on May 28, 2024

best open the browser's developer tools and check what call it's making / what error it's giving.

Also, check if the API is available by using the test-url that's given in the docs.

from frequi.

NilanjanaBala avatar NilanjanaBala commented on May 28, 2024

Failed to load resource: net::ERR_CONNECTION_REFUSED
:8080/api/v1/token/login:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Login.vue:145 Object
Login.vue:155 Login failed.
Please verify that the bot is running, the Bot API is enabled and the URL is reachable.
You can try this by going to http://http://localhost:8080/api/v1/ping
:8080/api/v1/token/login:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Login.vue:145 Object
Login.vue:155 Login failed.
Please verify that the bot is running, the Bot API is enabled and the URL is reachable.
You can try this by going to http://http://localhost:8080/api/v1/ping
:8080/api/v1/token/login:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Login.vue:145 Object
Login.vue:155 Login failed.
Please verify that the bot is running, the Bot API is enabled and the URL is reachable.
You can try this by going to http://http://localhost:8080/api/v1/ping
Login.vue:145 undefined
Login.vue:155 Login failed.
Please verify that the bot is running, the Bot API is enabled and the URL is reachable.
You can try this by going to http://http://localhost:8081/api/v1/ping
:8081/api/v1/token/login:1 Failed to lo

from frequi.

xmatthias avatar xmatthias commented on May 28, 2024

i think you've got the API url wrong - it shouldn't be http://http://localhost:8080/ - but http://localhost:8080/.

from frequi.

xmatthias avatar xmatthias commented on May 28, 2024

Closed by 2c8bf13 and 82cf57a - which now link to the corresponding CORS documentation in freqtrade.

from frequi.

Related Issues (20)

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.