C#C
C#16mo ago
5 replies
Relevant

Aspire python app giving certificate errors when debugging

So I followed the guide here https://learn.microsoft.com/en-us/dotnet/aspire/get-started/build-aspire-apps-with-python?tabs=powershell

And after adding the following code:

trace.set_tracer_provider(TracerProvider())
otlpExporter = OTLPSpanExporter()
processor = BatchSpanProcessor(otlpExporter)
trace.get_tracer_provider().add_span_processor(processor)

FlaskInstrumentor().instrument_app(app)

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)



I now get the error
ssl_transport_security.cc:1654] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED


I also added
"ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true"
to the launchSettings.json, but that doesn't help.

Any tips?
Learn how to integrate Python apps into a .NET Aspire app host project.
Orchestrate Python apps in .NET Aspire - .NET Aspire
Was this page helpful?