Troubleshooting Discord REST API JSON Parsing Error with Effect HTTP Client

Hey all, new to effect and am coming from ZIO and scala.

I am building a discord bot using dfx + Effect, using the effect bot as a starting point. I have a discord REST API request that is failing when getting the JSON body from the response.

There are a few layers of abstraction here, but the discord REST api uses the effect HTTP Client, and extracting the json gets 'aborted' cause: DOMException [AbortError]: This operation was aborted. wondering what could cause this? seems that the abort controller is called when the scope is closed, but I don't understand where I could be closing the scope.
Was this page helpful?