Why is My Pipedream Workflow Throwing a 401 Error when Accessing an External API Despite API Key Being Correctly Updated?

i just made a new workflow:
export default defineComponent({
async run({ steps, $ }) {
console.log(“Hello, World!”);
console.log(“api_Key:”, process.env.ELVANTO_API_KEY)
},
})
and it worked!

from the dcoumentation:
TIP
process.env will always return undefined when used outside of the defineComponent export.

I will see what my other workflow does, maybe this is the issue (or an issue).

Ah, yes. Glad you got it sorted!