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

READ_ONLY_API=no is not working #51

Open
qubolino opened this issue Dec 21, 2022 · 4 comments
Open

READ_ONLY_API=no is not working #51

qubolino opened this issue Dec 21, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@qubolino
Copy link

i did start the container with READ_ONLY_API=no in the .env file and added READ_ONLY_API: ${READ_ONLY_API:-}
in the docker-compose.yml

however in the container, this isn't reflected

root@1253ca273743:~# cat /root/ibc/config.ini|grep ReadOnlyApi=
ReadOnlyApi=
@efernandesng efernandesng self-assigned this Dec 21, 2022
@efernandesng efernandesng added the bug Something isn't working label Dec 22, 2022
@efernandesng
Copy link
Contributor

@qubolino thanks for your report. I'll try to solve that soon.

@Oli2
Copy link

Oli2 commented Jan 3, 2023

Hello,
I encountered the same issue. Strangely enough, even if I manually change READ_ONLY_API=no in the config file inside the container, I am still getting the following error message.
Error 321, reqId 2147483647: Error validating request.-'cB' : cause - The API interface is currently in Read-Only mode. Error 321, reqId -1: Error validating request.-'b_' : cause - The API interface is currently in Read-Only mode. open orders request timed out completed orders request timed out
A fix would be greatly appreciated.

@efernandesng
Copy link
Contributor

Hi @qubolino and @Oli2, sorry for the delayed reply.
I tried to reproduce the problem but without success, what tag/version you are using? If you are using the stable or latest tags, please print also the image sha256 (docker images --digests).

@tsa31584
Copy link

tsa31584 commented Apr 5, 2023

I'm having the same issue on both latest and stable.

Error 321, reqId 2147483647: Error validating request.-'cB' : cause - The API interface is currently in Read-Only mode. Error 321, reqId -1: Error validating request.-'b_' : cause - The API interface is currently in Read-Only mode. open orders request timed out completed orders request timed out on ib.connect()

Result of docker images --digests:

ghcr.io/unusualalpha/ib-gateway         latest     sha256:1fd51ff4ecb3000569829b3ef31bfe4a0b4b0cf25f04c6ed31909944e8d8e289   c947285f9146   2 months ago   892MB
ghcr.io/unusualalpha/ib-gateway         stable     sha256:7d5c3e5d0e49197f7abeab871d6c48e43996de8177d7cac2262cba0795367603   b9f3bc2748cd   2 months ago   892MB

Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants