prisma-archive / graphql-config-extension-graphcool

2 stars 3 forks source link

Incorrect error message about cluster #8

Closed kbrandwijk closed 6 years ago

kbrandwijk commented 6 years ago
×
No cluster set. Please set the "cluster" property in your graphcool.yml

Cluster is actually set, but the endpoint address was incorrect. However, this is not clear when you get this error message.

marktani commented 6 years ago

Just ran into this as well when running graphql prepare, I think because the local cluster was not running:

# docker ps
CONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS              PORTS                      NAMES
c69f2eb1782c        graphcool/graphcool-dev:0.9.0   “/app/bin/single-s...”   6 weeks ago         Up 3 minutes        0.0.0.0:60000->60000/tcp   local_graphcool_1
62952999fd72        graphcool/localfaas:0.9.0       “/app/bin/localfaas”     6 weeks ago         Up 3 minutes        0.0.0.0:60050->60050/tcp   local_localfaas_1
d140a18d933c        mysql:5.7                       “docker-entrypoint...”   2 months ago        Up 3 minutes        3306/tcp                   local_graphcool-db_1
kbrandwijk commented 6 years ago

Yes, that is the same as the reason for my error (incorrect address = same effect as cluster not running). The error message should be improved.

timsuchanek commented 6 years ago

Thanks for reporting @kbrandwijk and @marktani ! I added a better error message when the cluster exists in the graphcool.yml, but could not be found in the ~/.graphcoolrc. It's released under 1.0.2