Andrew Bucknall
Andrew Bucknall
For anyone else trying to get JSON output, I hacked it together like this: ```js const browser = osmosis.get('./foobar.json') .find('p') .set('json') .then(function(context, data) { const result = JSON.parse(data.json); console.log(result); });...
Do you mean cancelling an active request from the client? If so, you can provide a [`signal` from an `AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#signal)
It was pretty straight forward for me. My actual code is too complicated for a simple example but it boils down to something like: ```ts const abortController = new AbortController()...
A pattern I'm using (which I'm not sure it's a good idea), is nesting my writes inside my reads (to avoid variable scope issues). Any reason not to do this?...
I hit this issue recently too, resolved by creating the symlink as per: https://tailscale.com/kb/1188/linux-dns `$ sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf`