elasticio / rest-api-component-v2

The REST API v2 component is a simple yet powerful component that allows you to connect to any REST API without programming your own components and deploying them into the platform.
Apache License 2.0
1 stars 5 forks source link

REST API v2 component cannot read and pass the maester attachment #41

Open erroneous0ne opened 1 month ago

erroneous0ne commented 1 month ago

Component Bug Report

Useful Links

Link to the Slack conversation with SQUIZ.

Description

REST API v2 component cannot read and pass the maester attachment.

Component Version

2.0.15

Steps to Reproduce

  1. Create any attachment, with e.g. Utility String to Attachment action
  2. Try to send it via REST API v2 as multipart/form-data and maester attachmentURL in the Body

Actual Result

Item processing error line means that it tried to download the attachment from Maester, failed (because of the outdated Steward mechanism) and didn’t throw any error. image

Expected Result

File should be attached

A3a3e1 commented 1 month ago

https://github.com/elasticio/rest-api-component-v2/blob/0ab031e8bd767db0a9634a1de695cc977b477f1e/lib/utils.js#L346