Describe the problem/error/question
I am sending a GET HTTP Request. When using the javascript expression to use the number from the previous node, I’m getting a 404 error when hitting the API.
If I switch that out to just hardcode the number it pulls back the information just fine. What would be causing this to be treated differently? The preview of the URL (with the javascript) shows that there are no leading or trailing spaces and that the number is correct.
What is the error message (if any)?
Please share your workflow
(I am hardcoding my Authorization bearer token so I don’t want to share my full workflow for this part)
Here are two screenshots showing the failure and success while using the different methods.
Failed When Using Javascript
Success When Hardcoded Number
Share the output returned by the last node
ERROR: The resource you are requesting could not be found
404 - “{"success":false,"errors":["Game not found"]}”
Information on your n8n setup
- n8n version: 1.27.3
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Linux