Skip to content

Conversation

@chr-hertel
Copy link
Member

Q A
Bug fix? no
New feature? yes
Docs? no
Issues
License MIT

With #142 I accidentally changed the error reporting/handling of the platform layer, since I used toArray(false) instead of toArray() on the http client's response.

However, maybe it's better to go ahead with that and implement better error handling, since this was annoying to me anyways 🙊

  • Tests
  • Roll out to all bridges

@chr-hertel chr-hertel added the Platform Issues & PRs about the AI Platform component label Jul 19, 2025
@chr-hertel chr-hertel self-assigned this Jul 19, 2025
throw new ModelException($data['detail'], $data);
}

while (!\in_array($data['status'], ['succeeded', 'failed', 'canceled'], true)) {
Copy link
Member

Choose a reason for hiding this comment

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

If the response if 4xx or 5xx, status might not exist.

@chr-hertel chr-hertel force-pushed the improved-error-handling branch from b73d83c to d34c916 Compare October 24, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Platform Issues & PRs about the AI Platform component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants