I reset my prisma credentials, and after that I am...
# prisma-whats-new
r
I reset my prisma credentials, and after that I am facing below error whenever I do some query :
Copy code
[Network error]: Error: GraphQL Error (Code: 200)
Error: GraphQL Error (Code: 200)
    at BatchedGraphQLClient.<anonymous>
I even tried prisma deploy, still no luck.
n
what do you mean with Prisma credentials?
r
I reset the service name and secret in prisma.yml, and ran the command "prisma deploy". It ran successfully. But I am unable to query now. On, debugging further I found this to be the response :
Copy code
{ code: 3015,
requestId: 'api:api:cjebckx5l7l1x0122a7whhfu7',
error: 'Your token is invalid. It might have expired or you might be using a token from a different project.' }
I have tried renaming everything back, but still the error doesn't go away.
btw, I have raised PR for a better error message : https://github.com/graphcool/http-link-dataloader/pull/5
n
did you restart your server and playground after changing the secret.
?
r
What exact command do you mean? I did a prisma deploy followed by yarn start
n
based on the error message, you are using either the old secret, or an old token still
did you update the secret in
.env
?
r
Does it get auto added in .env somehow.. I have it in a yml file, and am using from there itself.
Also, which token is wrong, the prisma secret or the app-secret corresponding to jwt. Is there any restriction on changing anyone of them
I have changed everything back to what it was earlier, but seems, something is not getting reloaded.. I am removing node_modules and doing a fresh yarn..
n
please share your repository on Github or elsewhere 🙂
@nilan thanks, this is resolved. The issue was with the secret itself.
💯 1