terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

Add better error messaging to 'POST /v1/assets` route #3640

Open busma13 opened 1 month ago

busma13 commented 1 month ago

When making a curl request to POST /v1/assets we should check that we receive a zip file before decompressing it. If you forget the @ before the file path curl sends the path as a string instead of sending the file. Since we don't confirm what we've received before decompressing and saving, the error we get back is not helpful.