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

Github API Changes. Release id breaks check command #108

Closed
qvistgaard opened this issue Sep 8, 2021 · 2 comments
Closed

Github API Changes. Release id breaks check command #108

qvistgaard opened this issue Sep 8, 2021 · 2 comments

Comments

@qvistgaard
Copy link

I believe GitHub has made some changes to their graphql api. This morning all our builds started failing, long story short. the check commands has started to fail. to replicate:

Run check command with input
{ "source": { "access_token": "*******", "owner": "******", "repository": "*****" } }
Output:
error running command: illegal base64 data at input byte 2

Digging into what could be wrong, I identified the line throwing the error:

decodedID, err := base64.StdEncoding.DecodeString(r.Node.ID)

And it seems the api no longer responds with a valid base64 encoded id:
query { repository(name: "*****", owner:"******") { releases(first: 2, orderBy: { field: CREATED_AT, direction:DESC }) { edges { node { createdAt name id } } } } }
returns, and the id format changed
{ "data": { "repository": { "releases": { "edges": [ { "node": { "createdAt": "2021-09-08T12:24:52Z", "name": "1.13.1-8bae567", "id": "RE_kwDOEdX6pc4C7qbI" } }, { "node": { "createdAt": "2021-04-21T08:27:36Z", "name": "1.12.0", "id": "MDc6UmVsZWFzZTQxNzYxMDc5" } } ] } } } }

@qvistgaard qvistgaard changed the title Github API Changes. Release id Github API Changes. Release id breaks check command Sep 8, 2021
@qvistgaard
Copy link
Author

Related to #107

@qvistgaard
Copy link
Author

resolved with #107

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

1 participant