Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Agent HTTP Request Node treats custom json content-type declarations as binary #12712

Open
grandfso opened this issue Jan 19, 2025 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@grandfso
Copy link

grandfso commented Jan 19, 2025

Bug Description

#11219
The above commit introduces a bug where if an API responds with custom content type, e.g. application/custom+json;version=2.1 to complain

{
“response”: “There was an error: “Binary data is not supported””
}

While the returned data is a valid json, the data is not passed back to the agent.

The default (non agentic) HTTP Request node works fine with such responses.

Downgrading to 1.63.4 also makes the Agentic HTTP Request node works with such responses.

To Reproduce

Using (agentic) HTTP Request node, call an API that returns valid json with custom content-type declaration.

Expected behavior

Should allow the user to either ignore the warning about binary data and pass the response to the agent, or be more relaxed with custom type declarations filtering.
Or, better yet, when user specifies the Accept header in the request, that content type should be allowed in the response.

Operating System

Docker

n8n Version

1.74.3 (any from 1.64 onward)

Node.js Version

dunno

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 19, 2025

Hey @grandfso,

We have created an internal ticket to look into this which we will be tracking as "N8N-8168"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants