diff --git a/dist/index.js b/dist/index.js index 9dc7102..532b964 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27445,7 +27445,7 @@ const convertToJSON = (value) => { * * @returns {FormData} */ -const convertToFormData = (data, files, convertPaths) => { +const convertToFormData = (data, files) => { const formData = new FormData(); for (const [key, value] of Object.entries(data)) { @@ -27666,7 +27666,7 @@ const updateConfig = async (instanceConfig, formData, actions) => { } } } catch(error) { - actions.setFailed({ message: `Unable to read Content-Length: ${error.message}`, data, files }) + actions.setFailed(JSON.stringify({ message: `Unable to read Content-Length: ${error.message}` })) } } diff --git a/src/helper.js b/src/helper.js index da3207c..82db0b1 100644 --- a/src/helper.js +++ b/src/helper.js @@ -24,7 +24,7 @@ const convertToJSON = (value) => { * * @returns {FormData} */ -const convertToFormData = (data, files, convertPaths) => { +const convertToFormData = (data, files) => { const formData = new FormData(); for (const [key, value] of Object.entries(data)) { diff --git a/src/httpClient.js b/src/httpClient.js index acd1dbf..f91cf78 100644 --- a/src/httpClient.js +++ b/src/httpClient.js @@ -160,7 +160,7 @@ const updateConfig = async (instanceConfig, formData, actions) => { } } } catch(error) { - actions.setFailed({ message: `Unable to read Content-Length: ${error.message}`, data, files }) + actions.setFailed(JSON.stringify({ message: `Unable to read Content-Length: ${error.message}` })) } }