Commit graph

50 commits

Author SHA1 Message Date
Omar Ajoue 882e2f8e74
Addglobal timeout setting for all http requests except for http request node (#1650)
* Added a global timeout setting for all http requests except for http
node.

The http node explicitly sets a timeout that overrides the default
value.

This is to prevent behaviors when users were expecting that their quests
could take a very long time to execute.

* Removed unnecessary typing from code
2021-04-17 15:15:33 +02:00
Iván Ovejero 1d27a9e87e
Improve node error handling (#1309)
* Add path mapping and response error interfaces

* Add error handling and throwing functionality

* Refactor error handling into a single function

* Re-implement error handling in Hacker News node

* Fix linting details

* Re-implement error handling in Spotify node

* Re-implement error handling in G Suite Admin node

* 🚧 create basic setup NodeError

* 🚧 add httpCodes

* 🚧 add path priolist

* 🚧 handle statusCode in error, adjust interfaces

* 🚧 fixing type issues w/Ivan

* 🚧 add error exploration

* 👔 fix linter issues

* 🔧 improve object check

* 🚧 remove path passing from NodeApiError

* 🚧 add multi error + refactor findProperty method

* 👔 allow any

* 🔧 handle multi error message callback

*  change return type of callback

*  add customCallback to MultiError

* 🚧 refactor to use INode

* 🔨 handle arrays, continue search after first null property found

* 🚫 refactor method access

* 🚧 setup NodeErrorView

*  change timestamp to Date.now

* 📚 Add documentation for methods and constants

* 🚧 change message setting

* 🚚 move NodeErrors to workflow

*  add new ErrorView for Nodes

* 🎨 improve error notification

* 🎨 refactor interfaces

*  add WorkflowOperationError, refactor error throwing

* 👕 fix linter issues

* 🎨 rename param

* 🐛 fix handling normal errors

*  add usage of NodeApiError

* 🎨 fix throw new error instead of constructor

* 🎨 remove unnecessary code/comments

* 🎨 adjusted spacing + updated status messages

* 🎨 fix tab indentation

*  Replace current errors with custom errors (#1576)

*  Introduce NodeApiError in catch blocks

*  Introduce NodeOperationError in nodes

*  Add missing errors and remove incompatible

*  Fix NodeOperationError in incompatible nodes

* 🔧 Adjust error handling in missed nodes

PayPal, FileMaker, Reddit, Taiga and Facebook Graph API nodes

* 🔨 Adjust Strava Trigger node error handling

* 🔨 Adjust AWS nodes error handling

* 🔨 Remove duplicate instantiation of NodeApiError

* 🐛 fix strava trigger node error handling

* Add XML parsing to NodeApiError constructor (#1633)

* 🐛 Remove type annotation from catch variable

*  Add XML parsing to NodeApiError

*  Simplify error handling in Rekognition node

*  Pass in XML flag in generic functions

* 🔥 Remove try/catch wrappers at call sites

* 🔨 Refactor setting description from XML

* 🔨 Refactor let to const in resource loaders

*  Find property in parsed XML

*  Change let to const

* 🔥 Remove unneeded try/catch block

* 👕 Fix linting issues

* 🐛 Fix errors from merge conflict resolution

*  Add custom errors to latest contributions

* 👕 Fix linting issues

*  Refactor MongoDB helpers for custom errors

* 🐛 Correct custom error type

*  Apply feedback to A nodes

*  Apply feedback to missed A node

*  Apply feedback to B-D nodes

*  Apply feedback to E-F nodes

*  Apply feedback to G nodes

*  Apply feedback to H-L nodes

*  Apply feedback to M nodes

*  Apply feedback to P nodes

*  Apply feedback to R nodes

*  Apply feedback to S nodes

*  Apply feedback to T nodes

*  Apply feedback to V-Z nodes

*  Add HTTP code to iterable node error

* 🔨 Standardize e as error

* 🔨 Standardize err as error

*  Fix error handling for non-standard nodes

Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>

Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com>
2021-04-16 18:33:36 +02:00
Omar Ajoue f225bbbb84
Add type casting to postgres queries (#1600)
* 538 add support for casting types in postgres

* Add typing to postgres insert nodes and removed unnecessary field from crate db

* Added placeholder and description for types in postgres

* Adding tests to insert and changes suggested by Ben

*  Minor improvement

Co-authored-by: mutdmour <mutdmour@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-04-03 16:53:47 +02:00
Jan Oberhauser 44100dc675 Fix bug in HTTP Request node with raw data and file response 2021-03-02 10:18:39 +01:00
Omar Ajoue 9c479abc35
🐛 Fixed batch sizing to work when batchSize = 1 (#1314) 2021-01-07 07:53:48 +01:00
Ricardo Espinoza ea2d0920a8
Add useQueryString option to HTTP Request Node (#1279) 2020-12-29 11:37:06 +01:00
Jan Oberhauser 5c83be18a8 🐛 Fix issue that binary data got reused 2020-12-25 22:59:22 +01:00
Jan Oberhauser cb496b8c4d Small improvements to HTTP Request node 2020-10-26 13:27:29 +01:00
Omar Ajoue 26de4a86c9
Adding throttle to http request node (#1095)
Works by setting a timeout between each batch of requests.
Batch size and interval are configurable.
2020-10-26 13:27:12 +01:00
Jan Oberhauser 546b79bea0 👕 Fix lint issue 2020-10-22 18:00:28 +02:00
Jan Oberhauser 40c2acd77b 👕 Fix lint issue 2020-10-22 15:46:03 +02:00
Jan Oberhauser 4165fad307 🐛 Fix bug with responseFormat "file" for POST-Requests 2020-10-19 09:42:58 +02:00
Jan Oberhauser d827749c1e 🐛 Fix HTTP-Request multipart-form-data/raw bug 2020-10-16 16:05:32 +02:00
Jan Oberhauser 3ba050819a Fix issue that it did set not supported parameters 2020-10-15 08:01:30 +02:00
Jan Oberhauser fe802c8f76 👕 Fix built issue by fixing lint issues 2020-10-01 15:18:47 +02:00
Jan Oberhauser fccbd48937 Run requests in HTTP Request Node in parallel 2020-09-10 16:07:52 +02:00
Jan Oberhauser f4ed583359 🐛 Do not overwrite accept header if set on HTTP Request Node 2020-08-28 17:42:35 +02:00
Ricardo Espinoza abdda858eb
🐛 Fix issue with OAuth2 request (#874) 2020-08-25 18:56:19 +02:00
Rupenieks 5295696e60
OAuth1 support for HTTP Request Node (#781)
* Add OAuth1

*  Added OAuth1 support.

Changes to NodeExecuteFunctions:
- Accommodating to use of both a URL and URI property in request options.
- qs if not set is undefined, so checking for its length returns an error
2020-07-25 10:09:52 +02:00
Ricardo Espinoza db972b384f
🐛 Fixes issue #735 (#743) 2020-07-10 10:38:23 +02:00
ricardo 5e93b37c6e Improvements 2020-06-07 17:29:29 -04:00
ricardo af3d799e5c Oauth1 support and Twitter node 2020-06-01 20:42:44 -04:00
Jan Oberhauser 90fe5113a0 🔀 Merge branch 'master' into oauth-support 2020-04-14 20:54:19 +02:00
Jan Oberhauser fd185671db 🐛 Fix sending none JSON data bug 2020-04-13 22:17:23 +02:00
Jan Oberhauser b1172bdb48 🔀 Merge branch 'master' into oauth-support 2020-04-10 09:48:24 +02:00
Jan Oberhauser 4374b3d914 Small improvement to HTTP Request-Node 2020-04-10 00:44:09 +02:00
ricardo cbf4a921e8 HTTP node improvements 2020-04-08 23:17:09 -04:00
Jan Oberhauser 9dd9e0d8ba 🔀 Merge branch 'master' into oauth-support 2020-04-04 17:34:10 +02:00
Jan Oberhauser d710909bbd Add support to send multiple files with Form-Data Multipart 2020-03-30 10:31:33 +02:00
ricardo bce40148a6 Extended multipart/form-data functionality 2020-03-23 09:11:36 -04:00
Jan Oberhauser ce0aaeba7d Improve continueOnFail behaviour 2020-03-17 13:18:04 +01:00
Jan Oberhauser 8228b8505f Abstract OAuth signing and make credentials extendable 2020-01-13 20:46:58 -06:00
Jan Oberhauser 83c49ddd21 Make possible to send binary-data with HttpRequest-Node 2020-01-10 12:57:01 -06:00
Jan Oberhauser 7b8f88f39e Set reasonable defaults for HTTP Request node "accept" header 2020-01-01 10:28:43 -06:00
Jan Oberhauser e1be291949 Add subtitle to HTTP Request Node 2019-12-28 21:24:14 -06:00
Romain Dunand cfa8713226 Auth & get records management 2019-11-13 00:15:20 +01:00
Jan Oberhauser 5804d908d5 Rename parameter to match others and add dot to descriptions 2019-11-02 21:20:42 +01:00
Leo 644b5455c9 added ability to post raw/string/xml 2019-11-02 10:12:59 +01:00
Jan Oberhauser be8f0b9e35 Make it possible to send Patch-Requests with HttpRequest-Node 2019-10-16 12:32:15 +02:00
Jan Oberhauser ea6ec1aa6c Make it possible to send Form-Data with HttpRequest-Node 2019-10-16 12:26:47 +02:00
Jan Oberhauser 3580ea0e2e Add additional options to "HTTP Request" node 2019-09-19 21:56:04 +02:00
Jan Oberhauser 7a98291110 Add body support for PUT requests 2019-09-19 16:43:38 +02:00
Jan Oberhauser 5a8c2c9912 🐛 Fix bug that HTTP Request node did process data incorrectly 2019-09-04 22:41:17 +02:00
Jan Oberhauser 699cd25615 🐛 Fix bug that HTTP Request node did process JSON incorrectly 2019-09-04 22:02:10 +02:00
Jan Oberhauser c1e753e9d1 Remove "Read File From Url" node and add functionality to
"HTTP Request" node
2019-09-04 13:24:44 +02:00
Jan Oberhauser 74c2d9a366 Add digestAuth support to HTTP Request-Node 2019-09-04 07:37:48 +02:00
Thomas LEVEIL 36e93c15de Add option "allowUnauthorizedCerts" to HttpRequest-Node 2019-08-14 00:11:23 +02:00
Jan Oberhauser 1b59d7b886 Copy data on execution only if needed 2019-08-01 22:55:33 +02:00
Jan Oberhauser a8f1f9c0ba Small fixes and fix that some nodes changed incoming data 2019-08-01 22:44:29 +02:00
Jan Oberhauser 9cb9804eee Initial commit to release 2019-06-23 12:35:23 +02:00