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

Docker上登入失敗 #152

Open
jeffabc1997 opened this issue Sep 13, 2023 · 1 comment
Open

Docker上登入失敗 #152

jeffabc1997 opened this issue Sep 13, 2023 · 1 comment

Comments

@jeffabc1997
Copy link

Hi,
我想在docker上面跑api,但發生了以下Error。
環境是直接pull shioaji的image下來當作container。

SDK ERROR Wed Sep 13 10:07:35.325 2023 solClientZip.c:326                   (7f7f9b5fc6c0) Error in ingress decompression stream for conn 'tcp_TxRx' on session '(c0,s1)_sinopac', error: data error (-3), client name 'PYAPI/8NbXcNiqrJ/0913/100735/322105/LOGINING', VPN name 'sinopac', peer address 'IP 203.66.91.161:80', connection 'tcp_TxRx' local address 'IP 172.17.0.3:41942'
pysolace/core/sol.cpp(302): connected failed, return Not ready
Response Code: 0 | Event Code: 2 | Info:  | Event: Session connection attempt failed
[10:07:35.326181] [3400] [pysolace/core/sol.cpp:504:SendRequest] [E] [thread 39] Not ready
raceback (most recent call last):
  File "/workspaces/gettick/./src/app.py", line ....(略)

程式碼

def main():
    api = sj.Shioaji()
    api_key='' # 我的帳密
    secret_key='' 
    accounts = api.login(api_key=api_key, secret_key=secret_key ) # 出現Error
if __name__ == '__main__':
    main()

這code在windows上面跑時是沒問題的,請問要如何解決呢?
謝謝!

@Bonislolz
Copy link

我也遭遇到同樣問題,於docker內無法正常執行!

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

2 participants