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
I expect an Error when a Client is created with a bad apiKey. but none return when I call Enqueue()
Client
apiKey
Enqueue()
err := f.cli.Enqueue(posthog.Capture{ DistinctId: user.GetDistinctId(), Event: "$set", Properties: map[string]interface{}{ "$set": user.GetMap(), }, })
On bad apiKey nothing happens. The user is created when it is correct.
Also tried to set Callback in the Config, but it executed the Success(message posthog.APIMessage) implementation.
Callback
Config
Success(message posthog.APIMessage)
type Callback struct {} func (m Callback) Success(message posthog.APIMessage) { println(fmt.Sprintf("----message\n%v", message)) } func (m Callback) Failure(message posthog.APIMessage, err error) { println(fmt.Sprintf("----message\n%v", message)) println(fmt.Sprintf("----error\n%s", err.Error())) }
Is it possible to get an error when the apiKey is wrong? or maybe its a bug?
error
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I expect an Error when a
Client
is created with a badapiKey
. but none return when I callEnqueue()
On bad
apiKey
nothing happens. The user is created when it is correct.Also tried to set
Callback
in theConfig
, but it executed theSuccess(message posthog.APIMessage)
implementation.Is it possible to get an
error
when theapiKey
is wrong? or maybe its a bug?The text was updated successfully, but these errors were encountered: