Open jhorbulyk opened 4 years ago
Create a 3 step flow of the following form:
const putRequest = await request({ url, method: 'PUT' });
this.emit('data', {body: { url }, attachments: { 'file.xml': { url } } }); }
.
Test
XML component throws an error since the attachment contains the empty string which is not valid XML.
An error badge appears around the email component: Cannot use 'in' operator to search for 'elasticio' in null
Cannot use 'in' operator to search for 'elasticio' in null
This Sailor bug is partially to blame for the above behavior: https://github.com/elasticio/sailor-nodejs/issues/64
Steps to reproduce
Create a 3 step flow of the following form:
this input code
async function run(msg, cfg, snapshot) { const urlRequest = await request({ url: 'https://api.elastic.io/v2/resources/storage/signed-url', method: 'POST', auth: { username: process.env.ELASTICIO_API_USERNAME, password: process.env.ELASTICIO_API_KEY } }); const url = JSON.parse(urlRequest.body).get_url;const putRequest = await request({ url, method: 'PUT' });
this.emit('data', {body: { url }, attachments: { 'file.xml': { url } } }); }
.
Test
Test
Expected Result
XML component throws an error since the attachment contains the empty string which is not valid XML.
Actual result
An error badge appears around the email component:
Cannot use 'in' operator to search for 'elasticio' in null
This Sailor bug is partially to blame for the above behavior: https://github.com/elasticio/sailor-nodejs/issues/64