fix(errors): keep meta's code, subcode and both sentences in graph error text - #1095
Merged
Conversation
…ror text Every Meta integration threw away half of each Graph failure: `code` and `error_subcode` had nowhere to go (`ErrorLog` has no columns for them), and the developer-facing `message` was discarded whenever `error_user_msg` was present. `formatGraphError` in `@chatbotx.io/utils` composes all four into the one `text` column the error-log table, the inbox failed-message tooltip and the app logger already read, and replaces the per-integration `pickErrorMessage` copies. Meta already opens most Graph messages with its own `(#100) `, so that copy is stripped rather than printed twice. `channelErrorMessage` now skips an `originError` detail the composed message already contains, for the same reason.
hoangle398
force-pushed
the
feat/provider-error-logs
branch
from
September 6, 2026 12:41
da20177 to
47ed74b
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Every Meta integration threw away half of each Graph failure:
codeanderror_subcodehad nowhere to go (ErrorLoghas no columns for them), and the developer-facingmessagewas discarded whenevererror_user_msgwas present.formatGraphErrorin@chatbotx.io/utilscomposes all four into the onetextcolumn the error-log table, the inbox failed-message tooltip and the app logger already read, and replaces the per-integrationpickErrorMessagecopies.Meta already opens most Graph messages with its own
(#100), so that copy is stripped rather than printed twice.channelErrorMessagenow skips anoriginErrordetail the composed message already contains, for the same reason.