Skip to content

Conversation

@andreitava-uip
Copy link
Contributor

@andreitava-uip andreitava-uip commented Jan 15, 2026

  • IS activities with multipart/form-data content type expect the "body" to be added as a part.
  • With httpx, we were doing this by adding the body to the "files" array, because that is the only way to coerce httpx to construct multipart. This was causing httpx to also add filename: body to Content-Disposition, which caused some providers to interpret it as a file. (MS API did not work, Google API worked).

Wrong request body:

--boundary
Content-Disposition: form-data; name="body"; filename="body"
Content-Type: application/json

...body...

--boundary--

Correct request body (no filename):

--boundary
Content-Disposition: form-data; name="body";
Content-Type: application/json

...body...

--boundary--
  • the fix is to pass an empty string as the first tuple param, which will omit the filename field and produce the correct body

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Jan 15, 2026
@andreitava-uip andreitava-uip merged commit d06652e into main Jan 15, 2026
89 checks passed
@andreitava-uip andreitava-uip deleted the fix/is-multipart branch January 15, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants