Skip to content

This PR logs more descriptive error messages in line with RFC 9457.#19

Merged
jeff-cohere merged 1 commit into
mainfrom
rfc-9457-http-errors
Apr 14, 2025
Merged

This PR logs more descriptive error messages in line with RFC 9457.#19
jeff-cohere merged 1 commit into
mainfrom
rfc-9457-http-errors

Conversation

@jeff-cohere
Copy link
Copy Markdown
Collaborator

@jeff-cohere jeff-cohere commented Apr 10, 2025

Error messages emitted by the DTS are now made clearer in dtspy's error logging.

The easiest example exception I have handy is an NMDC data object without a workflow execution ID (which has to do with many things, but it certainly indicates that we can use dtspy to debug very detailed situations):

$ python nmdc-biosample-md.py
HTTP error occurred: {'$schema': 'http://localhost:8080/schemas/ErrorModel.json', 'title': 'Internal Server Error', 'status': 500, 'detail': 'unexpected error occurred', 'errors': [{'message': 'No workflow execution ID provided!'}]}

Closes #18

@jeff-cohere jeff-cohere added the enhancement New feature or request label Apr 10, 2025
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.4.8
🚀 Deployed preview to https://kbase.github.io/dtspy/pr-preview/pr-19/
on branch gh-pages at 2025-04-10 19:00 UTC

@jeff-cohere jeff-cohere merged commit 78f9c08 into main Apr 14, 2025
11 of 19 checks passed
@jeff-cohere jeff-cohere deleted the rfc-9457-http-errors branch April 14, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve client's error reporting

2 participants