Liltripple_reid
Liltripple_reid8mo ago

force-cache planetscale error

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
2 Replies
Nick
Nick8mo ago
This doesn't look related to tRPC, more a usage problem between your code and the DB
Liltripple_reid
Liltripple_reid8mo ago
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