Closed kedare closed 4 years ago
If you give params as an option, you also need to give a context:
&ipam.IPAMPrefixesListParams{
Context: context.Background(),
}
The SDK should clearly check if context has been set by the user though
Oh, ok.
I don't have access to the system anymore so I can't test the solution, but if it's just that, the issue can be closed :)
Indeed it would be useful to check that a context has been injected.
Thank you.
Hello,
I've been trying to use the Go client for Netbox without any success, I cannot get anything else than
context deadline exceeded
(instantly) when trying to query the Netbox hostA very simple code
Would returns
But the URL is perfectly reachable and working fine
Am I missing something ? Also when the Go code runs, the query doesn't run at all (Not visible in HTTP logs)
Thanks.