Commit graph

1 commit

Author SHA1 Message Date
k9ert
9fc3ea87ad
Chore: generic better error_handling for API calls (#2014)
* Chore: generic better error_handling for API calls

* pricebar and toggle_privacy

* fetchAddressData

* Remove anoying log-msg

* fix cypress test (hopefully)

* remove unnecessary code

* return response in send_request if it is error msg

* tx-table adapted with send_request

* variable declarations of api responses

* account for booleans as response values

* typo in rpc error handler

* try catch block in send_request added & type checking fixes

* tests for errorhandling

* use Headers()

* check for null not undefined

* remove log flodding and always returning an object

* fix tests

* Improved exception handling

* specify better Types for Exception

Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com>
Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
2022-12-13 14:23:04 +01:00