Skip to content

chore: guard metadata collection service to not fail the context_chat outputs - #266

Open
kyteinsky wants to merge 2 commits into
mainfrom
chore/guard-metadata-service
Open

kyteinsky wants to merge 2 commits into
mainfrom
chore/guard-metadata-service

Conversation

@kyteinsky

Copy link
Copy Markdown
Contributor

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@kyteinsky
kyteinsky requested a review from lukasdotcom August 11, 2026 12:32
@kyteinsky
kyteinsky force-pushed the chore/guard-metadata-service branch 2 times, most recently from 07549bb to f30f7d6 Compare August 13, 2026 14:13
… outputs

Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
@kyteinsky
kyteinsky force-pushed the chore/guard-metadata-service branch from f30f7d6 to 8a79716 Compare September 30, 2026 09:30
continue;
} catch (InvalidArgumentException $e) {
$this->logger->warning('Could not extract item id from the source id', ['source_id' => $source['source_id'], 'exception' => $e]);
continue;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would perhaps be even better to simply catch \Throwable here, as loading the provider class can fail in unexpected ways (who knows what people do in their apps)

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