Logout and login is not really a mandate after updates. Looks like a rare case. I and a colleague could not reproduce this. Will keep an eye on this problem and solution. Thank you so much for sharing the solution.
TypeError: first argument must be a string or instance of Error
So I try logging out like so:
slash-graphql logout
and I get this:
Error: Could not log you out. Please try logging in with `slash-graphql login`, then try invalidating all clients with `slash-graphql logout -a
so I try that:
slash-graphql logout -a
and it HANGS, no response after minutes without pressing CTRL + C…
I should note that slash-graphql update-lambda does not work with a token, and requires a login in the first place.
Now, I just need to logout. No idea how to do that. Re-logging-in does nothing. I suspect this is an issue on Windows, and may work fine in a Unix environment.
I am having the same problem ever since the updates in slash graphql… There are two problems as I see it:
update lambda is returning this error TypeError: first argument must be a string or instance of Error when I seem to be properly logged in and passing a valid enndpoint
update lambda should work without having to login by passing an admin token with the -t arg, and it does not, though it didn’t before the update either
The March 25 update broke some things in the CLI (including aforementioned admin token). We’re currently evaluating the position of the CLI. There may be other, better ways to interact with Dgraph Cloud/Slash and we’re exploring the alternatives. More to come
I agree with @pbassham and throw my input into the mix - having the CLI is very useful for deployment workflows and CI actions, hope the outcome is similarly useful and easy to use for things like that
Maybe a GraphQL Dgraph Cloud admin endpoint is coming? Just guessing. Each db already has a GraphQL admin endpoint and it would make sense if that was extended to do more of the Dgraph Cloud Management admin tasks as well. It already can handle schema pushes, other backend tasks shouldn’t be that far fetched.