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

Feature/sdk 44 #276

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft

Feature/sdk 44 #276

wants to merge 8 commits into from

Conversation

jcmelati
Copy link
Contributor

No description provided.

packages/oidf-client/src/agent/OIDFClient.ts Show resolved Hide resolved
} catch (error) {
throw Error(`Could not initialize the federation client: ${error.message}`)

return await response.text()
Copy link
Contributor

Choose a reason for hiding this comment

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

What are we doing with the HTTP status >= 300? response.text() may return an error message or a blank string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a check to throw if status is not 200.

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

Successfully merging this pull request may close these issues.

2 participants