Trying to run a newly deployed function via the lo...
# prisma-whats-new
k
Trying to run a newly deployed function via the local playground I get this:
Copy code
Deploying function signup for project cj8wljd9e00060140xr7l9rp0...
Deploying function signup for project cj8wljd9e00060140xr7l9rp0... Done.
/var/faas/functions/cj8wljd9e00060140xr7l9rp0/signup/src/email-password/signup-dev.js
false
false
Function invocation summary for project cj8wljd9e00060140xr7l9rp0 and function signup:
Duration: 7210ms
Success: true
Function return value: '{"error":"An unexpected error occured."}'
Error: ''
Process stdout: 'Error: GraphQL Error (Code: 200): {"response":{"code":3016,"requestId":"us-west-2:simple:cj8vq4kbi00000121ocsygg2s","error":"Project not found: 'cj8wljd9e00060140xr7l9rp0'","status":200},"request":{"query":"\n    query {\n      User(email: \"<mailto:kim.fransman@gmail.com|kim.fransman@gmail.com>\") {\n        id\n      }\n    }"}} 
'
Process stderr: ''
`
Any idea to what Iโ€™m doing wrong?
The same function is working in production
k
Hi, I think this is another problem, because Iโ€™m able to run queries and mutations against the endpoint. And when I deploy the function it says:
Deploying function signup for project cj8wljd9e00060140xr7l9rp0... Done.
But when I try to run it
"error":"Project not found: 'cj8wljd9e00060140xr7l9rp0'","status":200}
itโ€™s the same id
n
now I see what's going on, check my reply ๐Ÿ™‚
k
Ah I see. Took the code from the templates repo yesterday morning. ๐Ÿ™‚