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

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

Open
zznlink opened this issue Jun 28, 2023 · 0 comments
Open

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

zznlink opened this issue Jun 28, 2023 · 0 comments

Comments

@zznlink
Copy link

zznlink commented Jun 28, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant