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

[BUG] Error with certificates on the new version #240

Open
DaKuz47 opened this issue Dec 27, 2023 · 0 comments
Open

[BUG] Error with certificates on the new version #240

DaKuz47 opened this issue Dec 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@DaKuz47
Copy link

DaKuz47 commented Dec 27, 2023

Observed behavior

I have all the necessary certificates
When creating TolokaClient on version 0.1.22, everything works, but an error occurs on version 1.2.2. On version 1.2.2, you have to specify an explicit path to the certificate in the Toloka Client constructor

Expected behavior

No response

Python Version

3.8

Toloka-Kit Version

1.2.2

Other Packages Versions

No response

Example code

// working example on 0.1.22
toloka_client = TolokaClient(
    os.environ['TOLOKA_TOKEN'], url=args.toloka_api_url,
)

// The example above does not work on version 1.2.2
// working example on 1.2.2
toloka_client = TolokaClient(
    os.environ['TOLOKA_TOKEN'], url=args.toloka_api_url,
    verify=args.path_to_sert,
)

Relevant log output

Error accessing the Toloka API:

Exception: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)
@DaKuz47 DaKuz47 added the bug Something isn't working label Dec 27, 2023
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

1 participant