We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb55b8 commit e2e027dCopy full SHA for e2e027d
1 file changed
server/utils/atproto/utils/profile.ts
@@ -30,6 +30,12 @@ export class ProfileUtils {
30
const response = await fetch(resolveUrl, {
31
headers: { 'User-Agent': 'npmx' },
32
})
33
+ if (!response.ok) {
34
+ throw createError({
35
+ status: response.status,
36
+ message: `Failed to resolve MiniDoc for ${handle}`,
37
+ })
38
+ }
39
const value = (await response.json()) as MiniDoc
40
41
miniDoc = value
0 commit comments