-
Notifications
You must be signed in to change notification settings - Fork 244
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
Failing calls to create services dependancies #321
Comments
@msuterski which version of Go and this library are you using? That'll help me hone-in on the code to be looking at. The inconsistency of it, and with it being a NotFound error from the API, sounds like it's not at our layer but at the API. I can take a look to see if there's anything this library may be doing with that call path that looks suspect, but by and large this package is just a pass-through to the REST API. |
@msuterski so I have a few learnings and suggestions. The The other is that looking at the code, I cannot see how any values could be transposed or mixed up in the call to PagerDuty's API. So this makes me think that it's either something in your code (as you generate the payloads), or something in their API (consistency?) that's making the item be not found. Would you be willing to try the latest commit on You can use the Let me know what you end up finding / doing, and I'll keep this issue open until I hear from you. |
@msuterski wanted to check in and see if you'd made any progress on this. |
@theckman we added backoff and retries to our code and the failures are less frequent. I'll updated to the latest release in upcoming weeks and let you know if we still see retries being triggered. |
@msuterski thought I'd check in and see how it was going. Based on your last update, that makes it sound like an eventual consistency thing on PagerDuty's side. But please correct me if I misinterpreted your last update. |
@msuterski I'm going to close this issue at this time. Feel free to open a new one if you do experience more issues and believe it to be somehow related to this library. If you do continue to experience that specific problem, it may be good to reach out to PagerDuty support directly at |
We're having a very inconsistent results with calls to create dependancies between services using
AssociateServiceDependencies
The order of execution is:
At least half of the calls to create the dependency result in
Not Found (code: 2100)
error with no indication of what is actually missing. The*http.Response
object is alwaysnil
. The2100
code says nothing useful.I'm not sure if the problem is with underlying REST API or with how the package processes the responses. Given the
*http.Response
object returned fromAssociateServiceDependencies
is nil, it makes it difficult to debug what's going on.I wonder if there is a way to expose more details from the package about what is going on. I did not see any debug flags that would let us get more insight into the actual responses form the REST API.
Simplified code snippet of what is happening:
The text was updated successfully, but these errors were encountered: