Commit graph

21 commits

Author SHA1 Message Date
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
Jan Oberhauser bbf875cd08 👕 Fix lint issue 2021-04-02 18:18:43 +02:00
Agata M 499fa48784
Google Drive: Add support for creating folders & copying files for shared drives (#1436)
* Google Drive: Add support for creating folders for shared drives

* Google Drive: set supportAllDrives parameter to true

* fix(GoogleDrive): added supportAllDrives parameter for copy files
2021-04-02 18:14:39 +02:00
Jan Oberhauser e419d3ccbe Fix small issues 2021-03-12 11:51:35 +01:00
Ricardo Espinoza f7bd3060bd
Add operation file:update to Google Drive node (#1523)
*  Add operation file:update to Google Drive node

*  Improvements

*  Small changes

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-03-12 11:24:40 +01:00
Agata M 09659986db
🐛 Fix(GoogleDrive): missing permissions field (#1503) 2021-03-02 12:54:42 +01:00
Ricardo Espinoza 66f6b7dfeb
🐛 Add back missing field parents id on Google Drive (#1487) 2021-02-24 23:33:06 +01:00
Ricardo Espinoza 19412b6025
🐛 Fix bug with Google Drive node (#1443)
* 🐛 Fix bug with Google Drive node

The bug did not let the user to select the fields he wanted the API to return in the resources Folder and File.

*  Change default to not break anything and hide not needed options

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-02-15 09:02:47 +01:00
Iván Ovejero 58c9a92e38
🐛 Fix Google Drive delete and share (#1384)
* Fix condition that never evaluated to true

* Fix missing permissions for folder:share
2021-02-06 16:12:30 +01:00
Iván Ovejero 5ba66fb081
🐛 Fix default value for Send Notification Email option on GDrive (#1357) 2021-01-23 15:22:31 +01:00
Ricardo Espinoza fd1f60bbbe
Add Google Drive "drive" resource (#1327)
*  Add drive resource

*  Small improvements
2021-01-19 18:02:52 +01:00
Jan Oberhauser ad75f17e98 Removed more parameters which exited twice 2020-11-03 09:54:27 +01:00
Jan Oberhauser a002523b71 Removed a parameter which exited twice 2020-11-03 09:51:26 +01:00
Jan Oberhauser 40c2acd77b 👕 Fix lint issue 2020-10-22 15:46:03 +02:00
Jan Oberhauser fe802c8f76 👕 Fix built issue by fixing lint issues 2020-10-01 15:18:47 +02:00
Jan Oberhauser 43396b7b9c Minor improvements to GoogleDrive-Node 2020-09-18 09:57:05 +02:00
Ricardo Espinoza 283b40c9f5
Add share operation to Google Drive (#968) 2020-09-18 09:50:54 +02:00
smamudhan 725d2d16fc
Fixed typos and grammatical errors (#791)
* 🐛 Fixed typos and grammatical errors

* 🐛 Made changes based on Tanay's feedback
2020-07-24 12:56:41 +02:00
Jan Oberhauser 094614508d Some minor improvements 2020-06-13 13:47:49 +02:00
ricardo d3829c90c2 Google Drive OAuth2 support 2020-06-06 14:57:49 -04:00
ricardo bf02ae4f57 Added OAuth2 support 2020-05-30 15:09:10 -04:00
Renamed from packages/nodes-base/nodes/Google/GoogleDrive.node.ts (Browse further)