Fix: restrict Scrape httpMethod to GET/POST to match API schema#236
Merged
Conversation
The AlterLab API's UnifiedScrapeRequest.method field is an enum limited to GET and POST. The n8n node previously offered PUT, PATCH, and DELETE options which would cause 422 Unprocessable Entity errors from the API on selection. Removes the invalid options and tightens the requestBody displayOptions to POST-only.
4 tasks
Owner
Author
Security & Quality Review — PR #236 (commit
|
Owner
Author
PR Review Summary — #236Reviewed commit: Verdict: APPROVEDAPPROVED: commit Context-Aware ReviewDomains: TypeScript UI schema | Agents: 1 (General Security) Integration Checks (Phase 2.5)
Risk Matrix
FindingsNone. Automated Checks
RecommendationMerge. The fix correctly restricts the Scrape httpMethod options to GET/POST, matching the AlterLab API's Context-aware review complete. 1 agent + integration checks. 0 findings triaged. |
This was referenced Jun 3, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The AlterLab API's
UnifiedScrapeRequest.methodfield is an enum restricted toGETandPOST. The n8n node previously exposedPUT,PATCH, andDELETEas valid HTTP Method options in the Scrape resource — any user selecting these would receive a 422 Unprocessable Entity from the API.Changes
PUT,PATCH,DELETEfrom thehttpMethodoptions array in the Scrape resourcerequestBodyfielddisplayOptionsto show only forhttpMethod: ["POST"](was["POST", "PUT", "PATCH"])0.10.0→0.10.1Testing
Closes #222
Implementation branch:
fix/scrape-method-enum-222Base:
main