-
-
Notifications
You must be signed in to change notification settings - Fork 102
[Platform] Add generic exceptions #574
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
Open
junaidbinfarooq
wants to merge
3
commits into
symfony:main
Choose a base branch
from
junaidbinfarooq:feat/issue-528-add-generic-api-errors
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Platform] Add generic exceptions #574
junaidbinfarooq
wants to merge
3
commits into
symfony:main
from
junaidbinfarooq:feat/issue-528-add-generic-api-errors
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fb02868
to
65af651
Compare
- Adds exceptions for 404 and 503 - Adds a generic http error handler
- Fixes tests
282f91c
to
59746d1
Compare
- Adds logic, to handle rate limit exception, to the handler
59746d1
to
d5f9325
Compare
@chr-hertel @OskarStark |
chr-hertel
added a commit
that referenced
this pull request
Sep 28, 2025
…oesteve) This PR was squashed before being merged into the main branch. Discussion ---------- [Platform][OpenAI] Improve error reporting for Bad Request | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | Fix #528 | License | MIT I've noted an interesting initiative at #574 to handle non-valid response codes in a more structured and scalable way. This approach makes sense to me, but it may require further reflection. With this PR, I aim to contribute a humble and specific use case for OpenAI, along with an Exception class that could be reused for the other bridges. Commits ------- c39bbbf [Platform][OpenAI] Improve error reporting for Bad Request
symfony-splitter
pushed a commit
to symfony/ai-platform
that referenced
this pull request
Sep 28, 2025
…oesteve) This PR was squashed before being merged into the main branch. Discussion ---------- [Platform][OpenAI] Improve error reporting for Bad Request | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | Fix #528 | License | MIT I've noted an interesting initiative at symfony/ai#574 to handle non-valid response codes in a more structured and scalable way. This approach makes sense to me, but it may require further reflection. With this PR, I aim to contribute a humble and specific use case for OpenAI, along with an Exception class that could be reused for the other bridges. Commits ------- c39bbbf4 [Platform][OpenAI] Improve error reporting for Bad Request
@chr-hertel @OskarStark |
devmatt000
pushed a commit
to devmatt000/dev_ai
that referenced
this pull request
Oct 2, 2025
…oesteve) This PR was squashed before being merged into the main branch. Discussion ---------- [Platform][OpenAI] Improve error reporting for Bad Request | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | Fix #528 | License | MIT I've noted an interesting initiative at symfony/ai#574 to handle non-valid response codes in a more structured and scalable way. This approach makes sense to me, but it may require further reflection. With this PR, I aim to contribute a humble and specific use case for OpenAI, along with an Exception class that could be reused for the other bridges. Commits ------- c39bbbf4 [Platform][OpenAI] Improve error reporting for Bad Request
@junaidbinfarooq I'm currently not really convinced that it should be the role of result converters to handle this stuff. see #646 #136 and #167 please don't spend more time here - not closing for now, since we might come back to this approach. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature
New feature
Hackathon 2025
This issue or pull request was part of the Symfony AI Hackathon 2025
Platform
Issues & PRs about the AI Platform component
Status: Needs Review
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed:
The PR aims to add the following: