Skip to content

Prisma Backend api throwing openssl issue. #59

Open
@rakeshn19

Description

@rakeshn19

I am unable to access prisma back end API from client app . Invocation fails with OpenSSL issue .
Can you please help me to fix this?

OS: Ubuntu 20.04

I have changed the binaryTargets to
generator client {
provider = "prisma-client-js"
binaryTargets = ["debian-openssl-1.1.x"]
}

Query I am trying to execute is working fine in backend test package, but failed when same is requested from client,

Code executed from client is,

const { data, loading, error } = useGetUserQuery({
variables: {
input: { id: 'abc' } // value for 'input'
}
});
console.log('data', data, loading, error);

Error stack traces are ,

Invalid prisma.user.findUnique() invocation:

spawn node_modules/.prisma/client/query-engine-debian-openssl-1.1.x ENOENT, Location: [object Object], Path: getUser index.ts:28
data undefined true undefined index.tsx:48
data undefined false Error:
Invalid prisma.user.findUnique() invocation:

spawn node_modules/.prisma/client/query-engine-debian-openssl-1.1.x ENOENT
ApolloError index.ts:49
getQueryResult QueryData.ts:366
node_modules vendorsmain.chunk.js:7062
node_modules vendors
main.chunk.js:7001
result useBaseQuery.ts:65
useDeepMemo useDeepMemo.ts:18
useBaseQuery useBaseQuery.ts:64
useQuery useQuery.ts:12
useGetUserQuery operations.tsx:185
Welcome index.tsx:43
React 9
unstable_runWithPriority scheduler.development.js:468
React 5
onNewData useBaseQuery.ts:38
promise callbackonNewData useBaseQuery.ts:38
error QueryData.ts:305
notifySubscription Observable.js:140
onNotify Observable.js:179
error Observable.js:240
iterateObserversSafely iteration.ts:13
iterateObserversSafely iteration.ts:13
error ObservableQuery.ts:620
iterateObserversSafely iteration.ts:13
iterateObserversSafely iteration.ts:13
error Concast.ts:185
notifySubscription Observable.js:140
onNotify Observable.js:179
error Observable.js:240
promiseQueue asyncMap.ts:44
promise callback
makeCallback/< asyncMap.ts:42
notifySubscription Observable.js:135
onNotify Observable.js:179
next Observable.js:235
iterateObserversSafely iteration.ts:13
iterateObserversSafely iteration.ts:13
next Concast.ts:171
notifySubscription Observable.js:135
onNotify Observable.js:179
next Observable.js:235
next index.ts:56
notifySubscription Observable.js:135
onNotify Observable.js:179
next Observable.js:235
createHttpLink createHttpLink.ts:153
promise callback*createHttpLink/</< createHttpLink.ts:149
Subscription Observable.js:197
subscribe Observable.js:279
onError index.ts:37
Subscription Observable.js:197
subscribe Observable.js:279
complete Concast.ts:210
node_modules vendorsmain.chunk.js:9413
Concast Concast.ts:83
node_modules vendors
main.chunk.js:4562
node_modules vendorsmain.chunk.js:4598
resultsFromLink QueryManager.ts:1091
node_modules vendors
main.chunk.js:4783
fromVariables QueryManager.ts:966
index.tsx:48
Worker registration successful http://localhost:3000/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions