Skip to content

SSL Error #41

@Coding-Crashkurse

Description

@Coding-Crashkurse

Hello! After getting my API key I tried to run the very basic example from the Documentation:

Code:

from dotenv import load_dotenv, find_dotenv

load_dotenv(find_dotenv())

from opaqueprompts import sanitize, SanitizeResponse, desanitize

input_text_with_pii = "John Smith called 213-456-7098 (the phone number of his friend Sarah Jane) and asked her to meet him in San Francisco."
sanitized_response = sanitize(input_texts = [input_text_with_pii])

SSLError: _HTTPAConnectionPool(host='api.opaqueprompts.opaque.co', port=443): Max retries exceeded with url: /sanitize (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', '', 'certificate verify failed')])")))

Can you help me to identify the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions