local-cli icon indicating copy to clipboard operation
local-cli copied to clipboard

GraphQL connection info not found

Open DarkChris86 opened this issue 4 years ago • 6 comments

Hey,

I found the following problem. Am I miss something? The Local (v5.9.8) is running at my side , but I've got this error message:

local-cli --help Local CLI =========

VERSION @getflywheel/local-cli/0.0.5 win32-x64 node-v14.15.0

USAGE $ local-cli [COMMAND] COMMANDS help display help for local-cli list-sites list all Local sites start-site start a Local site and all of its services stop-site stop a Local site and all of its services

PS E:\Local...> local-cli list-sites Error: GraphQL connection info not found. Please ensure that Local is running.

DarkChris86 avatar Feb 09 '21 15:02 DarkChris86

It currently looks like there is only support for macOS. I am not sure where Local saves the connection info on Windows. But what I can tell from get-connection-info.ts it uses the macOS path.

Using something like process.platform here to check the OS and use the corresponding path would probably solve the issue.

runebakjacobsen avatar Feb 13 '21 16:02 runebakjacobsen

Looks like it also doesn't support WSL.

ethanclevenger91 avatar Sep 02 '21 22:09 ethanclevenger91

Same problem here with Linux (Ubuntu)

mwmdev avatar Sep 20 '21 10:09 mwmdev

Just tried this myself on Pop! OS (also Linux) and get the same result.

philipjohn avatar Mar 09 '22 16:03 philipjohn

It currently looks like there is only support for macOS. I am not sure where Local saves the connection info on Windows. But what I can tell from get-connection-info.ts it uses the macOS path.

This does appear to be the issue, upon a quick search of my Ubuntu/WSL drive I did find this same file in \wsl.localhost\Ubuntu\home\USERNAME.config\Local I'm not familiar with untildify so I need to read up on it to see if I can just change this file location and things will work or not.

dsnid3r avatar Jul 07 '22 22:07 dsnid3r

Im running Nobara (Fedora based linux). Here the file was located in "home/%USERNAME%/.config/Local/". I just changed this myself to get it working!

pieter-groenendijk avatar Nov 01 '23 09:11 pieter-groenendijk