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

fix(HTTP Request Tool Node): Fix the undefined response issue when authentication is enabled #11343

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

burivuhster
Copy link
Contributor

@burivuhster burivuhster commented Oct 22, 2024

Summary

This PR fixes an undefined response from HTTP Tool node in case authentication is enabled.

Since this PR was merged (#11219) HTTP tool node requires a full response. But the underlying implementation for the request may differ, depending on authentication setting, and so the name of the option to get the full response.

HTTP Tool Node now uses helpers.httpRequestWithAuthentication instead of deprecated helpers.requestWithAuthentication, so now it should respect the returnFullResponse option.

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Oct 22, 2024
Copy link
Contributor

@OlegIvaniv OlegIvaniv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be working as expected. Kudos for also improving the tests

Copy link

cypress bot commented Oct 22, 2024

n8n    Run #7503

Run Properties:  status check passed Passed #7503  •  git commit a59a4d7064: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Project n8n
Branch Review ai-407-http-tool-returning-response-undefined
Run status status check passed Passed #7503
Run duration 04m 27s
Commit git commit a59a4d7064: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 burivuhster 🗃️ e2e/*
Committer कारतोफ्फेलस्क्रिप्ट™
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 458
View all changes introduced in this branch ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@burivuhster burivuhster merged commit 094ec68 into master Oct 22, 2024
34 checks passed
@burivuhster burivuhster deleted the ai-407-http-tool-returning-response-undefined branch October 22, 2024 14:28
@github-actions github-actions bot mentioned this pull request Oct 24, 2024
@janober
Copy link
Member

janober commented Oct 24, 2024

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants