at null.getNodeRequestOptions (/opt/ee/node_modules/node-fetch/lib/index.js:1305:9) at null.null (/opt/ee/node_modules/node-fetch/lib/index.js:1410:19) at null.Promise (null:null:null) at null.fetch (/opt/ee/node_modules/node-fetch/lib/index.js:1407:9) at Object.module.exports (/steps/checkimage.js:14:20) at MessagePort.messageHandler (/opt/nodejs/node_modules/@pipedreamhq/execution-environment/launch_worker.js:447:41) at MessagePort.[nodejs.internal.kHybridDispatch] (internal/event_target.js:399:24) at MessagePort.exports.emitMessage (internal/per_context/messageport.js:18:26)
The workflow was a copy, not sure if the original had a bug or if I have introduced a bug…
Great thanks. The reason it helps to share the workflow with us is because the event data isn’t public to others - just the workflow code. When you share workflows with collaborators, they can see the event data. It’s helpful to see that when we’re troubleshooting specific issues.
In your case, the workflow depends on the value of a specific environment variable: process.env.MS_COG_EP. Did you create that environment variable? If that’s not set, you’d get the error you’re seeing because the HTTP request on line 14 is making a request to a host that doesn’t exist, so it’ll just try to make a request to the URL:
without any host / domain, so it throws the error you see.
It looks like the workflow expects to talk to a Microsoft service - is that right? It looks like it expects other environment variables (e.g. that contain the subscription key), as well.
That way, you can console.log its value to see exactly what’s getting passed to axios in the request. That should help you troubleshoot the absolute URL error.