Alex Gleason

Results 417 comments of Alex Gleason

baseUrl looks like what I want. I only care about the URL's origin, and also need the ability to pass full URLs. If it works like this, it's perfect: ```ts...

@sholladay I think the way to overcome code complexity and confusion while solving all use-cases is to just support a resolver function like mentioned here: https://github.com/sindresorhus/ky/issues/291#issuecomment-834772398 But I think it...

@sholladay That could work as long as we have the `input` there too. In fact that's the only reason it doesn't work already. You don't even need to let it...

Can it even get to the point of `beforeRequest` without already having a valid absolute URL though? I don't think it can construct the needed Request object unless you're already...

@sholladay Currently we can already do that with `beforeRequest`, but when the request looks like `Request { url: "https://ditto.pub/https://ditto.pub/api/v1/timelines/home?max_id=1234" }` it's not very helpful. I need the Input so I...

@sholladay Supporting multiple accounts on Mastodon.

I ended up just writing a custom bare minimum fetch wrapper and accepting that I will have to do `await (await ()).json()` all over my application code. https://gitlab.com/soapbox-pub/soapbox/-/blob/main/src/api/MastodonClient.ts?ref_type=heads

According to https://github.com/denoland/deno/issues/23693#issuecomment-2315268504 this is _actually actually_ fixed now.

So I edited the code manually and logged it. `err` is: ``` InvalidData: invalid peer certificate: UnknownIssuer at async TlsConn.read (ext:deno_net/01_net.js:150:15) at async success (https://raw.githubusercontent.com/alexgleason/postgres.js/51ac395234089d5b7806c471830a1a472958fb06/deno/polyfills.js:97:56) { name: "InvalidData" } ```...

If you are using Deno you can work around this by switching to my fork with: ```ts import postgres from "https://gitlab.com/soapbox-pub/postgres.js/-/raw/e79d7d2039446fbf7a37d4eca0d17e94a94b8b53/deno/mod.js"; ``` I've been using this fork in a high...