You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you so much for this sdk. It is so useful for writing tools/bots using this.
I am trying to implement a new tool using this sdk, and ran into a problem where printing the ErrorResponse is causing 'nil pointer dereference' error.
on trying to debug this, it seems like in following code r.Response.Request is nil and therefore resulting in the error:
First of all thank you so much for this sdk. It is so useful for writing tools/bots using this.
I am trying to implement a new tool using this sdk, and ran into a problem where printing the ErrorResponse is causing 'nil pointer dereference' error.
on trying to debug this, it seems like in following code
r.Response.Requestis nil and therefore resulting in the error:would it be ok if we added a nil check in this function?
FWIW, I was trying to use CreatePullRequest API with a PAT which didn't had enough permissions and therefore getting a
403 forbiddenerror.the json representation of the error is attached for reference:
JSON representation of ErrorResponse