You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even when an error is present, error handling returns an empty object due to the way errors are cast and returned.
Steps to Reproduce
Attempt to update an HTTP data source with no username/pass or no token. You will get an error back of {}. If you add a console.log(err) statement to the catch block in data_source_routes under the updateDataSource function, you will see that the following error is returned:
However, due to the formatting of the Error function not matching the format of this error, nothing is returned to the end user.
Impact
Better error handling will impact the frontend and API user. I'm imagining this fix can be handled by digging into the result.ts file and making some changes there.
The text was updated successfully, but these errors were encountered:
Bug Description
Even when an error is present, error handling returns an empty object due to the way errors are cast and returned.
Steps to Reproduce
Attempt to update an HTTP data source with no username/pass or no token. You will get an error back of
{}
. If you add aconsole.log(err)
statement to the catch block indata_source_routes
under theupdateDataSource
function, you will see that the following error is returned:However, due to the formatting of the Error function not matching the format of this error, nothing is returned to the end user.
Impact
Better error handling will impact the frontend and API user. I'm imagining this fix can be handled by digging into the
result.ts
file and making some changes there.The text was updated successfully, but these errors were encountered: