Lambda errors: Unable to use fetch API to post a file

Hello,

I'm trying to use the fetch Javascript library on GitHub which is supported by Xano's lambda fetch function. I want to send a file through an API from Xano to an external destination.

I've tried using the no-code approach for the REST API call but the issue is that I can only send images and PDF files with that approach. For what I'm building though, I need to be able to send any file type, which is why I'm considering the lambda function in case it can provide additional control.

To test the lambda function in Xano, I first tried to replicate this basic API function from the fetch API page (see snapshot below):[image.png]To replicate the above snapshot:

I created this function stack:[image.png]with the lambda function containing the Javascript code shown below. I tried two approaches: 
1. One where I didn't change anything except for the blob variable where I used a variable in the function stack to capture the input file; and [image.png] 
2. Another where I replaced all the values with variables from my function stack (my preferred approach for when I apply this to my actual situation). [image.png]

In both cases, I keep getting this error below even though it says 'everything ran successfully' (I'm supposed to get a JSON response from the fetch API):[image.png]
What am I missing? Can anyone assist me? Also, what does this error message mean and how do I correct the issues?
Working with APIs