Closed mr-pmillz closed 1 month ago
What's interesting is that the -asn flag works on the cli, but when run as a library, for some reason the env and/or the PdcpAuth are not respecting the api key for asnmap. Am not sure if this is related to goland test environment or what.
Oh wait, wow, nevermind. This is a false positive. I needed to set the env variables in Goland's debugger config. Interesting that GoLand does not respect env vars set via os.Setenv() in the debugger / test environments.
Closing issue. Sorry about that. Cheers 🍻
httpx version:
v1.6.8
Current Behavior:
Even with PdcpAuth set with the PDCP_API_KEY and/or having the env var set, when using the ASN option, a bunch of the following missing asnmap-api key errors get thrown:
Expected Behavior:
I expect to only have to specify the
PdcpAuth: pdcpAuth
or by setting the PDCP_API_KEY env var once to not see a bunch of asnmap errors and be able to get the ASN data as well. How to fix this?Steps To Reproduce:
I'm running the latest httpx version v1.6.8 as a go library via the following code:
Anything else:
if I comment out ASN in the runner.Options{} struct, then all is well and I don't see the asnmap-:api error a bunch: