T
tRPC

force-cache planetscale error

force-cache planetscale error

LLiltripple_reid10/23/2023
trying to use the trpc API from RSCs fails and gives the following error
result: {
data: {
secret: null,
error: [Error: cache: 'force-cache' used on fetch for https://aws.connect.psdb.cloud/psdb.v1alpha1.Database/Execute with 'export const fetchCache = 'only-no-store']
}
},
elapsedMs: 14
result: {
data: {
secret: null,
error: [Error: cache: 'force-cache' used on fetch for https://aws.connect.psdb.cloud/psdb.v1alpha1.Database/Execute with 'export const fetchCache = 'only-no-store']
}
},
elapsedMs: 14
Nnlucas10/23/2023
This doesn't look related to tRPC, more a usage problem between your code and the DB
LLiltripple_reid10/24/2023
if it were related to the DB, querying it directly from RSCs shouldn't work, but it does, PS: I'm using drizzle and the @planetscale/database driver

Looking for more? Join the community!

T
tRPC

force-cache planetscale error

Join Server