Graphcool / graphcool-framework

Apache License 2.0
1.78k stars 130 forks source link

ENOTFOUND error with invoke-local #428

Open marktani opened 6 years ago

marktani commented 6 years ago

Issue by steve-a-jones Thursday Nov 30, 2017 at 16:40 GMT Originally opened as https://github.com/graphcool/prisma/issues/1348


version

graphcool/0.9.2 (darwin-x64) node-v8.6.0

Current behavior invoke-local on docker target writes event json locally but fails to actually invoke. graphcool cli returns the following:

graphcool invoke-local -t docker -f ensureJobIsUniqueOnBuilder -j events/ensureJobIsUniqueOnBuilder/1.json
 ▸    'ENOTFOUND': request to http://graphcool:60000/simple/v1/xxxxxxxxxxx failed, reason: getaddrinfo
 ▸    ENOTFOUND graphcool graphcool:60000

The function is an operationBefore and runs fine as I can tail logs and verify it's execution.

Expected behavior? invoke-local should invoke the deploying function (inside local docker) with previous input or supplied json and I should be able to verify it's execution via log tailing or by inspecting the work it has done.