Skip to content

[server] fix GitHub Education API call #13082

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

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Sep 19, 2022

Description

This PR fixes parse errors when the GH Edu API call errors.

Related Issue(s)

Fixes #12203

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@AlexTugarev AlexTugarev requested a review from a team September 19, 2022 10:53
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 19, 2022
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-alex-fetching-the-github-education-12203.1 because the annotations in the pull request description changed
(with .werft/ from main)

@AlexTugarev AlexTugarev force-pushed the alex/fetching-the-github-education-12203 branch from 9712348 to d745f7f Compare September 19, 2022 10:58
@AlexTugarev AlexTugarev reopened this Sep 19, 2022
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-alex-fetching-the-github-education-12203.4 because the annotations in the pull request description changed
(with .werft/ from main)

@@ -94,8 +94,9 @@ export class EligibilityService {
logCtx,
`fetching the GitHub Education API failed with status ${rawResponse.status}: ${rawResponse.statusText}`,
);
return { student: false, faculty: false };
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding the missing return avoids running into parse error.

@roboquat roboquat merged commit 124a2e6 into main Sep 19, 2022
@roboquat roboquat deleted the alex/fetching-the-github-education-12203 branch September 19, 2022 13:07
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XS team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fetching the GitHub Education API failed with status 401: Unauthorized
3 participants