microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.89k stars 1.63k forks source link

Unknow error when use pyodbc to new a http_client on Windows 10. #1759

Open zznlink opened 1 year ago

zznlink commented 1 year ago

I was using python3.11 and pyodbc 4.0.34 to make a connection to my datasource. The implementation of this interface was simply a http client creation using cpprestsdk, and my code is as follows: image The issue is my code exit without any c++ execption or error message when I run this period of code, from the log below you can find it stop on the line mark as red: image I tried to catch some execption from my code but it print nothing. I followed this doc : https://github.com/microsoft/cpprestsdk/wiki/How-to-build-for-Windows to build a static library: cpprest_2_10.lib and also tried vcpkg to install same lib, and I have compiled my code (the odbc driver) successfully with this cpprest lib file. my system type is 64-bit operating system, x64-based processor, and my os is windows 10

image

Any advice is welcome. Thanks!