cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

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

Open zznlink opened this issue 2 years ago • 0 comments

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!

zznlink avatar Jun 28 '23 11:06 zznlink