Open yellowbean opened 5 months ago
I've already include servant-errors
servant-errors
https://github.com/yellowbean/Hastructure/blob/d813a25fc82b13538d0e1ba4a032d33de9ffffcb/app/Main.hs#L453
But seems that if error was trigger by here: https://github.com/yellowbean/Hastructure/blob/d813a25fc82b13538d0e1ba4a032d33de9ffffcb/src/Cashflow.hs#L511
the error "xxxxx" isn't convert into a json response like :
error "xxxxx"
{"status":xxx "message":"xxxxxx"}
from the python/request , a remoteDisconnected was raised.
remoteDisconnected
Research by far:
https://github.com/haskell-servant/servant/issues/1192
seems the issue hasn't been resolved.
The last resort will be create a new api endpoints with response type include a error message
I've already include
servant-errors
https://github.com/yellowbean/Hastructure/blob/d813a25fc82b13538d0e1ba4a032d33de9ffffcb/app/Main.hs#L453
But seems that if error was trigger by here: https://github.com/yellowbean/Hastructure/blob/d813a25fc82b13538d0e1ba4a032d33de9ffffcb/src/Cashflow.hs#L511
the
error "xxxxx"
isn't convert into a json response like :from the python/request , a
remoteDisconnected
was raised.