[Worker Local Dev] Always getting 'workers.api.error.internal_server [code: 10002]

For Workes & Pages, what is the name of the domain?

NA - The error only happens for local

What is the error number?

10002

What is the error message?

workers.api.error.internal_server [code: 10002]

What is the issue or error you’re encountering

I’m trying to run worker using --remote so I can use Cloudflare Vectorize but it’s always giving this error

What steps have you taken to resolve the issue?

I have tried logging in again, but no luck

What are the steps to reproduce the issue?

I’m on version wrangler 3.31.0
The worker is working fine in the local environment but when I try to run it using --remote, it’s giving this error.

Screenshot of the error