Prisma1: Getting started does not work

Created on 24 Jan 2018  路  17Comments  路  Source: prisma/prisma1

https://www.prismagraphql.com/docs/tutorials/prisma-basics/getting-started-ouzia3ahqu

Second attempt to deploy.

ERROR: GraphQL Error (Code: 502)

{
  "error": "An error occured with your deployment\n",
  "status": 502
}

Playground

{
"code": 3016,
"requestId": "api:api:cjcs92a245vu20113504b02lh",
"error": "Project not found: 'prisma@dev'"
}

bu2-confirmed

Most helpful comment

Thanks @leedan77, can you create a new issue with full information for reproduction? I'm losing track of the different situations in this issue :slightly_smiling_face:

All 17 comments

Yet another attempt, yet another error.

ERROR: Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm.

{
  "data": {
    "addProject": null
  },
  "errors": [
    {
      "locations": [
        {
          "line": 2,
          "column": 9
        }
      ],
      "path": [
        "addProject"
      ],
      "code": 3015,
      "message": "Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm.",
      "requestId": "cluster:cluster:cjcs9br4k00020161gdslx5yl"
    }
  ],
  "status": 200
}

This should work now. Please reach out to [email protected] if you are still encountering similar issues.

Deploy works, prisma plaground still "error": "Project not found: 'prisma@dev'"

Hey @steida thanks for reporting!
What is the endpoint url that is being opened in the Playground? Thanks!

https://eu1.prisma.sh/prisma/dev

Maybe you somehow mishandle prisma keyword, no?

i have a similar issue.

the most interesting part is that it worked briefly for a cool 10 minutes before dying again.

const server = new GraphQLServer({
    ...
    context: req => ({
        ...req,
        headers: {
           Authorization: "Bearer __TOKEN__"
        },
        db: new Prisma({
            endpoint: 'http://localhost:4466/dockerhost/dev', // the endpoint of the Prisma DB service
            secret: 'mysecret123', // specified in database/prisma.yml
            debug: true, // log all GraphQL queries & mutations
        }),
    }),
})

this is how you set request headers right?

Just found the problem. A new beta is available, a new stable version will be released soon.

Thanks for your help with this, @steida and @miyi 馃檹

Update Prisma to the latest 1.0.10, then "prisma playground" works, @steida .

Still does not work. After prisma init, I got the same error...

image

image

Can't do anything with it

@TheDeveloperTom what's your prisma version?
What cluster are you deploying to?
What are your steps to reproduce the problem? 馃檪

  1. image

  2. local/remote - the same result

  3. streps to reproduce: prisma init -> open offered link -> get the error.

  1. what do you mean with open offered link? When I run prisma init, I get to choose between "minimal setup" and "GraphQL server/fullstack".

@TheDeveloperTom thanks for adding the screenshots! Your error message is actually different than any other shared in this thread before 馃檪

Do you have a secret set in prisma.yml?

Works when using "yarn dev", while "prisma playground" gets
image

A little confuse with using prisma playground or yarn dev.

Thanks @leedan77, can you create a new issue with full information for reproduction? I'm losing track of the different situations in this issue :slightly_smiling_face:

I'm getting this error on a prisma cloud hosted/managed production server... 2 members of my prisma cloud team get the error and the third is able to deploy...

ERROR: Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm.

{
  "data": {
    "addProject": null
  },
  "errors": [
    {
      "locations": [
        {
          "line": 2,
          "column": 9
        }
      ],
      "path": [
        "addProject"
      ],
      "code": 3015,
      "message": "Authentication token is invalid: Token can't be decoded: Invalid signature for this token or wrong algorithm.",
      "requestId": "__SERVER_NAME__:cjrmebr4uxuvq0854n43bmcvt"
    }
  ],
  "status": 200
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

MitkoTschimev picture MitkoTschimev  路  3Comments

Fi1osof picture Fi1osof  路  3Comments

marktani picture marktani  路  3Comments

schickling picture schickling  路  3Comments

AlessandroAnnini picture AlessandroAnnini  路  3Comments