Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add 'reason' field to JSON error responses#2958

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@kevin-bates
Copy link
Member

During the deprecation/removal of the@json_errors decorator, the
reason field was not carried forward into the compatible replacement
methodAPIHandler.write_error. This broke some client (tests) that
relied on that field's presence.

Fixes#2957.

During the deprecation/removal of the `@json_errors` decorator, the`reason` field was not carried forward into the compatible replacementmethod `APIHandler.write_error`.  This broke some client (tests) thatrelied on that field's presence.Fixesjupyter#2957.
@takluyver
Copy link
Member

@kevin-bates looking back at the old decorator code before#2853, it set reason toe.reason when e is an HTTPError, and None otherwise. I'd suggest that we replicate that.

@kevin-bates
Copy link
MemberAuthor

@takluyver - yeah, that's probably the best approach. Change committed.

@takluyver
Copy link
Member

Thanks. I'll merge tomorrow if no-one says otherwise.

@takluyvertakluyver merged commit9a5c2c0 intojupyter:masterNov 1, 2017
@kevin-bateskevin-bates deleted the fix-2957-add-reason-to-json-errors branchNovember 1, 2017 15:26
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsApr 4, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@minrkminrkAwaiting requested review from minrk

1 more reviewer

@gnestorgnestorgnestor approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

APIHandler.write_error should setreason field in JSON error response.

3 participants

@kevin-bates@takluyver@gnestor

[8]ページ先頭

©2009-2025 Movatter.jp