openziti / sdk-golang

Ziti SDK for Golang
Apache License 2.0
100 stars 15 forks source link

no log when dialing a service that doesn't have matching intercept #489

Closed dovholuknf closed 9 months ago

dovholuknf commented 9 months ago

if you create an identity using the intercept-based service location and neglect to give that identity rights to dial the service, nothing in the logs helps you figure this out. Please add a small log indicating that no match was found

dovholuknf commented 9 months ago

same comment in the PR:

I changed over to making an SdkCollection and adding a context to it, instead of using the deprectated ziti.NewDialer()/ziti.NewDialerWithFallback and a helpful error is output in that situation so I'm closing this PR/issue (for now at least)

You'll see something like:

"Failed to init cache: failed to send a http request -> Get \"http://core-metadata.edgex.ziti:80/api/v3/device/serv
ice/name/device-rest?limit=-1&offset=0\": address [tcp:core-metadata.edgex.ziti:80] is not intercepted by any ziti context"