Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extensions/github-authentication/src/githubServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,11 @@ export class GitHubServer implements IGitHubServer {
? 'faculty'
: 'none';
} else {
this._logger.info(`Unable to resolve optional EDU details. Status: ${result.status} ${result.statusText}`);
edu = 'unknown';
}
} catch (e) {
this._logger.info(`Unable to resolve optional EDU details. Error: ${e}`);
edu = 'unknown';
}

Expand Down
1 change: 1 addition & 0 deletions extensions/github-authentication/src/node/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ async function fetchWithFallbacks(availableFetchers: readonly Fetcher[], url: st

async function tryFetch(fetcher: Fetcher, url: string, options: FetchOptions, logService: Log): Promise<{ ok: boolean; response: FetchResponse } | { ok: false; err: any }> {
try {
logService.debug(`FetcherService: trying fetcher ${fetcher.name} for ${url}`);
const response = await fetcher.fetch(url, options);
if (!response.ok) {
logService.info(`FetcherService: ${fetcher.name} failed with status: ${response.status} ${response.statusText}`);
Expand Down
Loading