See `jsfetch` it has an example in the documentation with `.then()` and `.catch()`.
- How to catch DOM exception in Nim code? halloleo
- How to catch DOM exception in Nim code? juancarlospaco
- How to catch DOM exception in Nim code? jyapayne
- How to catch DOM exception in Nim code? juancarlospaco