We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With just a method and a url for net(), there is no result and a ValueError. I am able to get a result with cURL.
from commonpy.network_utils import net print(net('get', 'https://caltech.tind.io/search?ln=en&p=barcode%3A+35047019492099&of=xm'))
result: (None, ValueError('httpx.Timeout must either include a default, or set all four parameters explicitly.'))
(None, ValueError('httpx.Timeout must either include a default, or set all four parameters explicitly.'))
cURL can return the expected XML: curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "https://caltech.tind.io/search?ln=en&p=barcode%3A+35047019492099&of=xm"
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "https://caltech.tind.io/search?ln=en&p=barcode%3A+35047019492099&of=xm"
The text was updated successfully, but these errors were encountered:
I can reproduce this. Looks like a bug. Will investigate.
Sorry, something went wrong.
The interface for httpx Timeout changed last August (https://github.com/encode/httpx/releases/tag/0.14.0) and I guess I must have been testing against an older version of the library. I'll fix it and make a new release of CommonPy today.
Fix for issue #2: httpx Timeout needs a default value
730f2b5
This should be fixed in version 1.3.0, just released.
No branches or pull requests
Describe the bug
With just a method and a url for net(), there is no result and a ValueError. I am able to get a result with cURL.
To Reproduce
result:
(None, ValueError('httpx.Timeout must either include a default, or set all four parameters explicitly.'))
Environment (please complete the following information)
Additional context
cURL can return the expected XML:
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "https://caltech.tind.io/search?ln=en&p=barcode%3A+35047019492099&of=xm"
The text was updated successfully, but these errors were encountered: