Repository navigation
Name the connector setting that left a JSON body template invalid - #1998
Merged
Merged
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
When a connector setting used in a bare JSON slot of a
bodyTemplateis missing or empty, the call fails withbodyTemplate produced invalid JSON after interpolation (...)and nothing else. The user can't tell which field to fill in. On Cloud, an Odoo JSON-RPC setup check failed eight times in a row this way ("args":["{{ODOO_DB}}",{{ODOO_UID}},...]with no user id set).The error now names the setting, for example:
The connector setting `ODOO_UID` has no value: fill it in on the connector page.Only names are shown, never values.Changes
interpolateConnectorConfig: in a JSONbodyTemplate, a variable set to an empty string in a bare (unquoted) slot keeps its{{NAME}}placeholder instead of rendering,,. That body was invalid JSON before and still is, so nothing new reaches the target system. Quoted slots and XML bodies are unchanged.RestEngine: when the body does not parse, the hint also lists{{NAME}}placeholders left in the template (missing or empty settings), next to the existing${param}hint.Type
Testing
In
packages/backend(afternpx prisma generate):npx jest --maxWorkers=4 src/common/env-interpolation.util.spec.ts src/connectors/engines/rest.engine.spec.ts src/adapters: 1001 suites passed, 1 skipped; 37,945 tests passed, 2,348 skipped (live specs).npx tsc --noEmit -p tsconfig.json: no errors.npx eslinton the changed files: no findings.Both deployment modes behave the same: this is the shared REST engine.
Checklist
npm test)Related Issues
Found in the 2026-12-06 Cloud tool-error review.