Open MaggotMouth opened 2 years ago
Can confirm that curl'ing the endpoint does not result in the X-Request-Id being present in the headers as is expected in the SDK.
I changed the loglevel to ErrorLevel
the warning not appeared, but it is not a resolve the problem but it can hide it
scheduleClient, err := schedule.NewClient(&client.Config{
ApiKey: apiKey,
LogLevel: logrus.ErrorLevel,
})
Hey y'all, here is the Bug ticket to track this issue -> https://jira.atlassian.com/browse/OPSGENIE-1121
Its August, 2023 the bug ticket isn't even touched. Is the API still maintained at all?
It's 2024 and not much has changed... :(
Hi everyone to gain traction on this issue with the development team please visit https://jira.atlassian.com/browse/OPSGENIE-1121 and click the option "This affects my team", the count represented there is the metric used to decide what urgency / priority this issue will be given by the development team.
We're getting a lot of warnings for
Could not set requestId
.It seems to be coming from this line https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/master/client/client.go#L149
Below is a sample of a response not containing the requestId as logged by this line https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/master/client/client.go#L501 :
The endpoint in question is https://docs.opsgenie.com/docs/who-is-on-call-api#get-on-calls for the above log entry