fix: add error logging for Mastodon fetch failure
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m18s
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m18s
This commit is contained in:
@@ -45,7 +45,8 @@ export async function POST(req: NextRequest) {
|
||||
let postsPerHour = 0
|
||||
try {
|
||||
postsPerHour = await getPostsPerHour(tag)
|
||||
} catch {
|
||||
} catch (err) {
|
||||
console.error('[research] Mastodon fetch failed:', err)
|
||||
return NextResponse.json(
|
||||
{ error: 'Could not reach Mastodon. Try again later.' },
|
||||
{ status: 502 },
|
||||
|
||||
Reference in New Issue
Block a user