I upgraded a project to the “CLI”, I disabled the ...
# prisma-whats-new
v
I upgraded a project to the “CLI”, I disabled the old authentication integration before doing so, then added the basic auth template to the project, and deployed to prod. When I go to the playground, I can login with a user I had previously created, but invoking the mutation “signupUser” from the playground always returns an “unexpected error” (5001), and I notice that the “requestId”: “eu-west-1simplecj9pkkz4spypu0102kzl4o1wg” doesn’t actually match mu project id
m
have a look at your .graphcoolrc default API ID
v
I have this in my .graphcoolrc
Copy code
targets:
default: prod
prod: shared-eu-west-1/cj9aalofn1udi01323iwp3pjs
m
I've got
Copy code
clusters:
  default: shared-eu-west-1
targets:
  default: dev
  dev: shared-eu-west-1/XXXXX
v
my .graphcoolrc was created by graph.cool when I upgraded the project to CLI
Also, other mutations and queries work — not sure about this one… I found this: https://www.graph.cool/forum/t/error-project-not-found-on-resolver-function/1312 — but didn’t understand much
n
I notice that the “requestId”: “eu-west-1simplecj9pkkz4spypu0102kzl4o1wg” doesn’t actually match mu project id
m
hmmm you might have to ask someone else as I've not used docker on graphcool
n
a request id is something different than a service id, so it shouldn't match 😉
m
here comes Nilan to the rescure 🙂
n
what's the output of
graphcool logs
for that function invocation?
m
*rescue
v
hi @nilan
hold on
I think I’ve got the wrong one
hold on
oh silly me
required fields missing
-_-
sorry guys
btw, when I click on the arrow to expand a log, it doesn’t really work
(CHrome on Mac)
I had to inspect the code and copy and paste from there
m
you can use
graphcool logs -f signUp
in the CLI
v
thanks
you can tell I am pretty new at this, can’t you 😄
m
you can add -tail I think