Closed bartland closed 4 years ago
For curiosity, went to .dub/packages/requests-1.0.9/requests/
dub test
$ dub test
Generating test runner configuration 'requests-test-std' for 'std' (library).
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Excluding package.d file from test due to https://issues.dlang.org/show_bug.cgi?id=11847
Performing "unittest" build using /home/bruce/dlang/dmd-2.089.0/linux/bin64/dmd for x86_64.
cachetools 0.3.1: building configuration "library"...
requests 1.0.9: building configuration "requests-test-std"...
source/requests/package.d(403,31): Deprecation: alias std.json.JSON_TYPE is deprecated - Use JSONType
source/requests/package.d(403,31): Deprecation: enum member std.json.JSONType.STRING is deprecated - Use .string
Compiling httpbin server
Linking...
Running ./requests-test-std
2019-11-09T12:07:34.438 [trace] ssl_adapter.d:66:_sharedStaticCtor_L50_C1 will use libssl.so
2019-11-09T12:07:34.438 [trace] ssl_adapter.d:80:_sharedStaticCtor_L50_C1 will use libcrypto.so
requests.uri.UriException@source/requests/uri.d(35): Can't parse uri ''
Program exited with code 1
Hello @bartland
Can you please run
dub run -v --force
for your test app and show me complete output?
Thanks!
UPD: also can you try git clone https://github.com/ikod/dlang-requests.git; cd requests ; dub test
Figured it out. MacOS and Linux.
If the environment variable http_proxy is set, it uses it even when blank.
If I unset it, it works.
The code should probably check this and ignore it if blank - as per std.net.curl behavior.
Cheers.
Hello @bartland !
Thanks for report! Can you please check with latest commit from github? I'll make new release if everything will be ok.
Thanks!
Hi @ikod
The original project fails but the new one works.
All unit tests have been run successfully.
Cheers
Thanks, will close issue
Tried (installed with "curl https://dlang.org/install.sh | bash -s dmd|gdc|ldc")
app.d
dub --vverbose