Issue with Parsing JSON Response in Custom Code
Hey all, another quick question (effect-http related).
I have this code snippet for fetching some data from a public API:
I ensured that the URL returns a correct JSON object, as I tested it in Insomnia.
Where
However, for some reason, I seem to get this error:
I'm not sure why it's saying created is missing; Insomnia showed it to be correct. That leads me to believe I'm not doing something right with the fetch? I'm just not sure exactly what at present.
I have this code snippet for fetching some data from a public API:
I ensured that the URL returns a correct JSON object, as I tested it in Insomnia.
SearchResult is simply a Schema.Struct:Where
ArtistS is a big type/Struct containing all the data returned from the API. The result in general conforms to what is returned from the API.However, for some reason, I seem to get this error:
I'm not sure why it's saying created is missing; Insomnia showed it to be correct. That leads me to believe I'm not doing something right with the fetch? I'm just not sure exactly what at present.
