dfinity / ic-hs

A haskell toolbox for the Internet Computer
Apache License 2.0
35 stars 6 forks source link

catch HTTP exception from HTTPS outcalls #195

Closed mraszyk closed 1 year ago

mraszyk commented 1 year ago

Catch HTTP exceptions from canister HTTPS outcalls and return them as reject responses with SYS_TRANSIENT reject code. Currently, ic-ref hangs upon an HTTP exception due to, e.g., the remote server being unreachable.