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

SSLError #154

Open
hkaideveloper opened this issue Jun 20, 2023 · 2 comments
Open

SSLError #154

hkaideveloper opened this issue Jun 20, 2023 · 2 comments

Comments

@hkaideveloper
Copy link

My code:

import gate_api
import config

configuration = gate_api.Configuration(
    host = "https://api.gateio.ws/api/v4",
    key = config.GATE_API_KEY,
    secret = config.GATE_API_SECRET,
    discard_unknown_keys = True)

api_client = gate_api.ApiClient(configuration)
api_instance = gate_api.SpotApi(api_client)

api_response = api_instance.list_currencies()
print(api_response)

With an Error:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.gateio.ws', port=443): Max retries exceeded with url: /api/v4/spot/currencies (Caused by SSLError(SSLError(1, '[SSL] unknown error (_ssl.c:1002)')))

@revilwang
Copy link
Collaborator

Where is your client located? Can you reproduce the issue with curl https://api.gateio.ws/api/v4/spot/currencies

@Evil0ctal
Copy link

Same issue, use a proxy will fix that :)

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

3 participants