Skip to content
New issue

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

Could not set requestId #112

Open
MaggotMouth opened this issue Oct 31, 2022 · 6 comments
Open

Could not set requestId #112

MaggotMouth opened this issue Oct 31, 2022 · 6 comments

Comments

@MaggotMouth
Copy link

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 :

time=2022/10/31 08:50:01 level=debug msg=Request processed. The result: &{ResultMetadata:{RequestId: ResponseTime:0.031 RateLimitState:OK RateLimitReason: RateLimitPeriod: RetryCount:0} Parent:{Id:a3f182a3-7860-40da-9832-d238cbe6d3aa Name:TEST_TEAM_schedule Enabled:true} OnCallParticipants:[] OnCallRecipients:[]}

The endpoint in question is https://docs.opsgenie.com/docs/who-is-on-call-api#get-on-calls for the above log entry

@MaggotMouth
Copy link
Author

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.

@y0rune
Copy link

y0rune commented Nov 1, 2022

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,
	})

@gg5201818
Copy link

Hey y'all, here is the Bug ticket to track this issue -> https://jira.atlassian.com/browse/OPSGENIE-1121

@mkurde
Copy link

mkurde commented Aug 2, 2023

Its August, 2023 the bug ticket isn't even touched. Is the API still maintained at all?

@migueleliasweb
Copy link

It's 2024 and not much has changed... :(

@AllenCraigBarnard
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants