Hello, my Vercel KV storage has not transitioned to Upstash and my app is now broken.
I receive this error on the healthcheck api route in my nextjs app.
1This Serverless Function has timed out.23Your connection is working correctly.45Vercel is working correctly.67504: GATEWAY_TIMEOUT8Code: FUNCTION_INVOCATION_TIMEOUT9ID: fra1::k8b9z-1738517855583-d88336b55874
Vercel Staff
Hi , welcome to the Vercel Community!
Sorry that you're facing this issue. Can you share here what are the error logs you see in the function execution?
Vercel Alum
We also have some troubleshooting docs which may be helpful:
1import { ping } from '@/services/redis'23/** Test the connection to the Redis database. */4export default async function handler(req: NextApiRequest, res: NextApiResponse) {5 res.status(200).json({ redis: await ping() })6}7
the redis.ts file
1import { kv } from '@vercel/kv'23/** Test the connection to the Redis database. */4export async function ping(message?: string): Promise<string> {5 return kv.ping([message])6}
When I do this, it works just fine, so I am pretty sure it's the redis.
I can't view the redis storage in my Vercel Dashboard.
Vercel Alum
Hi, ! Did you manage to get to the root issue of this?
No, I didn't. I was still waiting for the migration to finalize, but nothing happened yet.
Vercel AlumAccepted answer
Hey ! Sorry for the late follow-up on this.
Vercel KV has been fully sunset, existing stores were automatically migrated to Upstash Redis back in December 2024. It sounds like the migration may not have completed properly for your store, which would explain the 504 timeouts.