-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
An error occurs when running, see the error attachment #310
Comments
Please provide demonstration code and a description of the problem. If english isn't your first language, feel free to write the issue in your first language and I'll put it through a translator on my end. https://tda-api.readthedocs.io/en/latest/help.html#provide-adequate-information |
OSError Traceback (most recent call last) ~\AppData\Roaming\Python\Python38\site-packages\httpcore\backends\sync.py in start_tls(self, ssl_context, server_hostname, timeout) ~\AppData\Roaming\Python\Python38\site-packages\httpcore\backends\sync.py in start_tls(self, ssl_context, server_hostname, timeout) D:\Program Files\anaconda3\lib\ssl.py in wrap_socket(self, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, session) D:\Program Files\anaconda3\lib\ssl.py in _create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session) D:\Program Files\anaconda3\lib\ssl.py in do_handshake(self, block) OSError: [Errno 0] Error During handling of the above exception, another exception occurred: ConnectError Traceback (most recent call last) ~\AppData\Roaming\Python\Python38\site-packages\httpx_transports\default.py in handle_request(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpcore_sync\connection_pool.py in handle_request(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpcore_sync\connection_pool.py in handle_request(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpcore_sync\http_proxy.py in handle_request(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpcore_sync\connection.py in handle_request(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpcore_sync\connection.py in handle_request(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpcore_sync\connection.py in _connect(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpcore\backends\sync.py in start_tls(self, ssl_context, server_hostname, timeout) D:\Program Files\anaconda3\lib\contextlib.py in exit(self, type, value, traceback) ~\AppData\Roaming\Python\Python38\site-packages\httpcore_exceptions.py in map_exceptions(map) ConnectError: [Errno 0] Error The above exception was the direct cause of the following exception: ConnectError Traceback (most recent call last) in baojia(symbol) ~\AppData\Roaming\Python\Python38\site-packages\tda\client\base.py in get_quotes(self, symbols) ~\AppData\Roaming\Python\Python38\site-packages\tda\client\synchronous.py in _get_request(self, path, params) ~\AppData\Roaming\Python\Python38\site-packages\httpx_client.py in get(self, url, params, headers, cookies, auth, follow_redirects, timeout, extensions) ~\AppData\Roaming\Python\Python38\site-packages\authlib\integrations\httpx_client\oauth2_client.py in request(self, method, url, withhold_token, auth, **kwargs) ~\AppData\Roaming\Python\Python38\site-packages\authlib\oauth2\client.py in ensure_active_token(self, token) ~\AppData\Roaming\Python\Python38\site-packages\authlib\oauth2\client.py in refresh_token(self, url, refresh_token, body, auth, headers, **kwargs) ~\AppData\Roaming\Python\Python38\site-packages\authlib\oauth2\client.py in _refresh_token(self, url, refresh_token, body, headers, auth, **kwargs) ~\AppData\Roaming\Python\Python38\site-packages\authlib\oauth2\client.py in _http_post(self, url, body, auth, headers, **kwargs) ~\AppData\Roaming\Python\Python38\site-packages\httpx_client.py in post(self, url, content, data, files, json, params, headers, cookies, auth, follow_redirects, timeout, extensions) ~\AppData\Roaming\Python\Python38\site-packages\authlib\integrations\httpx_client\oauth2_client.py in request(self, method, url, withhold_token, auth, **kwargs) ~\AppData\Roaming\Python\Python38\site-packages\httpx_client.py in request(self, method, url, content, data, files, json, params, headers, cookies, auth, follow_redirects, timeout, extensions) ~\AppData\Roaming\Python\Python38\site-packages\httpx_client.py in send(self, request, stream, auth, follow_redirects) ~\AppData\Roaming\Python\Python38\site-packages\httpx_client.py in _send_handling_auth(self, request, auth, follow_redirects, history) ~\AppData\Roaming\Python\Python38\site-packages\httpx_client.py in _send_handling_redirects(self, request, follow_redirects, history) ~\AppData\Roaming\Python\Python38\site-packages\httpx_client.py in _send_single_request(self, request) ~\AppData\Roaming\Python\Python38\site-packages\httpx_transports\default.py in handle_request(self, request) D:\Program Files\anaconda3\lib\contextlib.py in exit(self, type, value, traceback) ~\AppData\Roaming\Python\Python38\site-packages\httpx_transports\default.py in map_httpcore_exceptions() ConnectError: [Errno 0] Error |
Please provide example code to show how this failure was triggered. It would also help to explain what you were attempting to do when you encountered this failure. |
The above problem occurs when I use my own computer. I can use the server computer normally. The example is as follows, I have done error handling, so no error is reported, but the quotation result will not be displayed from tda import auth, client def baojia(symbol): |
Please read the bug submission guidelines before submitting a bug.
Not following guidelines may result in your bug being ignored and/or closed.
Description of Bug
Code to Reproduce
Paste in the code that causes the bug to occur.
德美利报错.txt
IMPORTANT: Remember to anonymize your code. Be sure to replace API keys/Client IDs with placeholders. Also, never, ever share the contents of your token file.
Expected Behavior
Actual Behavior
Error/Exception Log, If Applicable
See here to learn how to turn on debug logging: https://tda-api.readthedocs.io/en/latest/help.html
The text was updated successfully, but these errors were encountered: