You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(langchain-sdk): Correctly parse Manifest API response as JSON (#143)
The Manifest API returns a JSON payload. Previously, it was parsed as
YAML, which worked due to YAML's superset relationship with JSON. This
change explicitly parses the response as JSON for improved robustness
and security by ensuring strict adherence to the expected format.
=="Failed to parse YAML from https://my-toolbox.com/test: while parsing a flow mapping\nin \"<unicode string>\", line 1, column 1:\n { invalid yaml\n ^\nexpected ',' or '}', but got '<stream end>'\n in \"<unicode string>\", line 1, column 15:\n { invalid yaml\n ^"
101
+
=="Failed to parse JSON from https://my-toolbox.com/test: Expecting property name enclosed in double quotes: line 1 column 3 (char 2): line 1 column 3 (char 2)"
=="Invalid YAML data from https://my-toolbox.com/test: 2 validation errors for ManifestSchema\nserverVersion\n Field required [type=missing, input_value={'invalid yaml': None}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.10/v/missing\ntools\n Field required [type=missing, input_value={'invalid yaml': None}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.10/v/missing"
121
+
=="Invalid JSON data from https://my-toolbox.com/test: 2 validation errors for ManifestSchema\nserverVersion\n Field required [type=missing, input_value={'something': 'invalid'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.10/v/missing\ntools\n Field required [type=missing, input_value={'something': 'invalid'}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.10/v/missing"
0 commit comments