Effector Error Handling Challenge
Hey all,
I'm doing some beginning work with Effect, trying to get the hang of a few things.
I'm trying to make a basic API that interfaces with some public API's. I have this endpoint:
And this code, where I've attempted to implement some error handling:
However,
I'm attempting to add it in
I'm doing some beginning work with Effect, trying to get the hang of a few things.
I'm trying to make a basic API that interfaces with some public API's. I have this endpoint:
And this code, where I've attempted to implement some error handling:
However,
getArtist in getMusicLive errors, as it is expecting proper typing for the handled error.I'm attempting to add it in
Api.addResponse in getMusic, but I am unsure what to put after the 500. I tried a few things with Schemas, like using a Struct, but that didn't seem to work.