We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code component with
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: elasticio/sailor-nodejs#64
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Steps to reproduce
Code component with
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: elasticio/sailor-nodejs#64
The text was updated successfully, but these errors were encountered: