https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • m

    matty

    01/11/2018, 4:22 AM
    every damn corner I turn with this framework... I swear to god.
  • f

    Fitch

    01/11/2018, 4:25 AM
    You have to include the roottokens in your graphcool yml
  • f

    Fitch

    01/11/2018, 4:25 AM
    https://github.com/graphcool/templates/blob/b9001d21d897eabb77f738c457670d8513bf62ed/outdated/auth/auth0-authentication/functions/managed/graphcool.yml
  • m

    matty

    01/11/2018, 4:26 AM
    @Fitch this is for authenticating, it uses a different type of token - a platform token
  • f

    Fitch

    01/11/2018, 4:26 AM
    you can generate one via the cli or get it from the ui
  • m

    matty

    01/11/2018, 4:26 AM
    a root token is not used by the graphcool-framework CLI
  • f

    Fitch

    01/11/2018, 4:26 AM
    https://www.graph.cool/docs/reference/auth/authentication/authentication-tokens-eip7ahqu5o/
  • f

    Fitch

    01/11/2018, 4:26 AM
    it is for the authentication to not use oauth
  • m

    matty

    01/11/2018, 4:27 AM
    can you please go to graph.cool and open your console, then the settings / authentication page
  • m

    matty

    01/11/2018, 4:27 AM
    "AUTH VIA CLI To authenticate with the graphcool cli without a browser, use the following command ..."
  • m

    matty

    01/11/2018, 4:27 AM
    i am using the command and token they are giving here in my project (albeit, with
    graphcool-framework
    bin)
  • f

    Fitch

    01/11/2018, 4:27 AM
    Ive never gotten the graphcool login --token "eyJ0e to work in cli
  • f

    Fitch

    01/11/2018, 4:27 AM
    but including it yml does
  • m

    matty

    01/11/2018, 4:28 AM
    a root token is what you use to communicate with your own projects API, not the API of the graphcool system itself
  • m

    matty

    01/11/2018, 4:28 AM
    i.e. http://api.graph.cool/system uses platform tokens (not root tokens from your project)
  • f

    Fitch

    01/11/2018, 4:29 AM
    if youre just trying to access an api function .. you have to include the auth bearer
  • f

    Fitch

    01/11/2018, 4:30 AM
    -.txt
  • m

    matty

    01/11/2018, 4:30 AM
    Fitch, we're not talking about the same thing.
  • f

    Fitch

    01/11/2018, 4:32 AM
    if your talking about the pure system style api
  • f

    Fitch

    01/11/2018, 4:32 AM
  • f

    Fitch

    01/11/2018, 4:33 AM
    it shouldn't require any tokens
  • m

    matty

    01/11/2018, 4:34 AM
    Found the problem, in the npm package
    graphcool-cli-engine
    the source code is trying to request a NEW token, even after successfully validating the PROVIDED token
  • m

    matty

    01/11/2018, 4:35 AM
    in method
    Auth.prototype.ensureAuth
    ➕ 1
  • f

    Fitch

    01/11/2018, 4:35 AM
    lawl
  • m

    matty

    01/11/2018, 4:51 AM
    downgrading from
    graphcool-framework
    to
    graphcool
    does not fix
  • m

    matty

    01/11/2018, 4:51 AM
    probably because they are using the shared dependency with the bug
  • m

    matty

    01/11/2018, 5:18 AM
    https://github.com/graphcool/graphcool/pull/1575
  • c

    ChinCluBi

    01/11/2018, 6:54 AM
    is image api still working? i try to request image file but receive this error.
    Copy code
    {
      "message": "Internal server error"
    }
  • c

    Callum

    01/11/2018, 7:16 AM
    Hi guys, new developer here that has been delving into fresh interesting tech and I saw this
  • c

    Callum

    01/11/2018, 7:17 AM
    But when i went into how it works and a basic setup for testing i see it uses some sort of centralization to get and post data?
1...500501502...637Latest