NASA node failing

Describe the issue/error/question

The NASA node is giving an error when ‘Download Image’ is set to True

Please share the workflow

Share the output returned by the last node

{"message":"404 - {\"type\":\"Buffer\",\"data\":[60,33,68,79,67,84,89,80,69,32,72,84,77,76,32,80,85,66,76,73,67,32,34,45,47,47,73,69,84,70,47,47,68,84,68,32,72,84,77,76,32,50,46,48,47,47,69,78,34,62,10,60,104,116,109,108,62,60,104,101,97,100,62,10,60,116,105,116,108,101,62,52,48,52,32,78,111,116,32,70,111,117,110,100,60,47,116,105,116,108,101,62,10,60,47,104,101,97,100,62,60,98,111,100,121,62,10,60,104,49,62,78,111,116,32,70,111,117,110,100,60,47,104,49,62,10,60,112,62,84,104,101,32,114,101,113,117,101,115,116,101,100,32,85,82,76,32,47,97,112,111,100,47,105,109,97,103,101,47,50,50,48,54,47,65,114,112,50,56,54,45,50,48,50,50,48,51,45,67,68,75,50,52,45,70,76,73,80,76,57,48,48,48,45,76,82,71,66,95,78,105,99,111,108,97,115,82,79,76,76,65,78,68,95,115,105,103,110,97,116,117,114,101,95,76,68,50,48,52,56,46,106,112,103,32,119,97,115,32,110,111,116,32,102,111,117,110,100,32,111,110,32,116,104,105,115,32,115,101,114,118,101,114,46,60,47,112,62,10,60,47,98,111,100,121,62,60,47,104,116,109,108,62,10]}","name":"Error","stack":"Error: Request failed with status code 404\n    at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n    at IncomingMessage.emit (node:events:539:35)\n    at endReadableNT (node:internal/streams/readable:1345:12)\n    at processTicksAndRejections (node:internal/process/task_queues:83:21)"}
Stack
NodeApiError: The resource you are requesting could not be found
    at Object.nasaApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Nasa/GenericFunctions.js:21:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Nasa/Nasa.node.js:1070:38)
    at async Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/Workflow.js:594:28)
    at async /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:537:49

Information on your n8n setup

  • n8n version: 0.181.1
  • Database you’re using (default: SQLite): Postgres
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker

Hey @shrey-42, I’m sorry to hear you are having trouble. From quickly testing this your workflow also fails on 0.179.0 for me, so I doubt this is related to the update. The ASCII representation of the decimal numbers from your error message is:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /apod/image/2206/Arp286-202203-CDK24-FLIPL9000-LRGB_NicolasROLLAND_signature_LD2048.jpg was not found on this server.</p>
</body></html>

So I suspect either a temporary problem or the NASA API having been updated without us noticing. I’ll add this node to our internal bug tracker for a closer look.

1 Like

Yeah, just realised that it’s a coincidence (my upgrading & the node failing). Have edited the post.

@shrey-42 can you try a day before (you can change it in the additional fields)? That error is probably due to NASA not having a picture available for that day yet. The error does not tell you that because we had a bug showing the errors when using Axios, but that got fixed. I tested it and got: