Returning .png as file on GET request

I’d like to return a png file as binary data. The source url for example is:
https://s3-fips.us-gov-west-1.amazonaws.com//parts.app.digitalmfg/3546e7797f40f790fbc2c904b6ba66206442ac72.png

I use the Http request node, get request, set the response type as file:
If I type the URL in directly, it works as expected.

However if I attempt to set the URL as expression through a prior node I get the following error:
The “url” argument must be of type string. Received undefined.

Welcome to the community @Davey!

Do you have multiple incoming items? If that is the case, is it possible that some items have the property you are referencing in the expression and others do not? Because that would then explain why it resolves to undefined.

That was it @jan, Thanks. Turned on “Continue on Fail” and all is good.

Great to hear!

The cleaner solution would probably be to have an IF-Node before it and only let the ones pass that have the property.

1 Like