Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket failed, polling doesn't work #2621

Open
CarlSinclair opened this issue May 21, 2024 · 8 comments
Open

Websocket failed, polling doesn't work #2621

CarlSinclair opened this issue May 21, 2024 · 8 comments
Assignees

Comments

@CarlSinclair
Copy link

CarlSinclair commented May 21, 2024

Step 1: Have you search for this issue before posting it?

Yes

Step 2: Describe your environment

  • OS : [AlmaLinux 9, docker]
  • Python Version: 3.29
  • In case you are not using a binary version:
    • Branch: Master
    • Last Commit ID: _____ (git log --format="%H" -n 1)

Step 3: Describe the problem:

Describe the bug
Watched markets never loads, trading page never loads, and the following errors appear in console:
image

Expected behavior
No errors

Steps to reproduce:

  1. install docker container and have it listen on a random port
  2. create Apache reverse proxy for that random port
  3. start the container
  4. Visit Octobot in the browser
@CarlSinclair
Copy link
Author

Compared to my Windows install:

image

@Herklos Herklos self-assigned this Aug 4, 2024
@Herklos
Copy link
Member

Herklos commented Aug 4, 2024

Hi,

Are you using the same setup for your Windows install? (with apache as reverse proxy)

@CarlSinclair
Copy link
Author

No. On Windows I used the binary, and it worked perfectly. Trying to run the binary on linux fails with the following error:
[3745252] Error loading Python lib '/tmp/_MEIcBGdCW/libpython3.10.so.1.0': dlopen: /lib64/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/_MEIcBGdCW/libpython3.10.so.1.0)

My guess is that's likely due to the fact that the system uses python 3.9 and OctoBot requires 3.10. I installed 3.10 and followed the python/git instructions. Now the errors in the page are gone, but there are errors in the console:
image

Allowing trackers removed the errors, but the chart still won't load:
image

@CarlSinclair
Copy link
Author

I found the following errors in the notifications:
image

Since that URL loads correctly in the browser, I figured it could be a CSP issue. So I added the URL to default-src since I have no idea what specific permissions are required. No new errors are generating in the notifications, but the chart still isn't loading. Other pages are stuck on OctoBot is loading.

Could this be because I have no exchanges configured? I don't have any configured on the Windows setup either, but all the pages are loading correctly despite the errors in the notifications:
image

@GuillaumeDSM
Copy link
Member

If you get notifications, then it's better already!
Yes, if no change configuration at all is provided, the dashboard chart can't load. Fixing or removing your Binance credentials should fix it.

@CarlSinclair
Copy link
Author

But like I said, the Windows binary works without adding any Binance credentials.

I'm also not interested in using Binance. I want to use a dex like Bisq. Is that possible? Or would it require significant core changes to the code?

@KhryptorGraphics
Copy link

KhryptorGraphics commented Sep 3, 2024

I have this issue too, but it is intermittent. It happens no matter what platform its on when communicating with binance.us

@Herklos
Copy link
Member

Herklos commented Sep 3, 2024

But like I said, the Windows binary works without adding any Binance credentials.

I'm also not interested in using Binance. I want to use a dex like Bisq. Is that possible? Or would it require significant core changes to the code?

We are using ccxt to support multiple crypto exchanges. If ccxt does not support an exchange like Bisq, you should first ask them to support it and then we should be able to integrate it in OctoBot.
To ask for the support of an new exchange in OctoBot you have to create a post at https://feedback.octobot.cloud/open-source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants