Hello n8n community,
I am currently facing an issue with the HTTP Request node in n8n and would really appreciate any assistance.
I am trying to make a GET request to the following endpoint:
https://getquipu.com/invoices (or any other available, see docs here). This endpoint requires two headers:
Accept. When I make the same GET request using cURL, R, or Python, it works flawlessly, but when using n8n’s HTTP Request node, I receive an error.
I initially thought it was Oauth2 related. But the token** that I retrieve in an earlier node (or externally) seems to be received just fine at the endpoint either send explicitly as header or using Header Auth within n8n. I used webhook.site to inspect what is sent to the server, and the requests appear to be identical between the R scripts and n8n.
** As a side information: Interestingly, the node to request the Token didn’t work initially if I followed regular set up, that is to send the required parameters explicitly as “Send Body” in the HTTP request node, but had to include it in the URL itself through “https://getquipu.com/oauth/token?grant_type=client_credentials”.
# Load the httr library library(httr) # Define the URL, headers, and page number url <- "https://getquipu.com/invoices" bearer_token <- "YOUR_BEARER_TOKEN" page_number <- 1 # Construct the full URL with query parameter full_url <- paste0(url, "?page[number]=", page_number) # Define headers headers <- c( Authorization = paste0("Bearer ", bearer_token), Accept = "application/vnd.quipu.v1+json" ) # Make the GET request response <- GET(full_url, add_headers(.headers=headers)) # Print the response print(content(response))
ERROR: The resource you are requesting could not be found (HTTP Code 404)
- n8n version: 0.225.1
- Running n8n via (Docker, npm, n8n cloud, desktop app): Within Coolify in Docker
- Operating system: Linux
Is there something specific in n8n’s HTTP Request node that might cause this issue, or is there a setting I might have overlooked? Any guidance would be greatly appreciated!
Thank you in advance!