go-github
go-github copied to clipboard
unexpected status code: 410 Gone
im getting "unexpected status code: 410 Gone" in recent days, any clue about this pl ?
More information, please? What endpoint are you calling, for example? Have you checked the official GitHub v3 API documentation: https://docs.github.com/en/rest ?
Thanks @gmlewis , im getting 410 while calling client.Actions.ListWorkflowRunsByFileName functions.
Thanks @gmlewis , im getting 410 while calling client.Actions.ListWorkflowRunsByFileName functions.
According to https://pkg.go.dev/net/http, status code 410 is "StatusGone". Maybe there aren't any workflows with the file name you are providing?
I'm guessing that the name is case sensitive and if it contains spaces or other special characters, they may need to be escaped with: url.QueryEscape
: https://pkg.go.dev/net/url#QueryEscape