https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • j

    Jerry Jäppinen

    02/22/2019, 9:22 PM
    (Had Prisma CLI v. 1.17, updated to 1.27 and same result)
  • j

    Jerry Jäppinen

    02/22/2019, 9:24 PM
    It’s not possible to have an issue with whitespace in the secret, is it? It’s trimmed at the ends that’s for sure but I have a long secret which includes spaces
  • r

    ryan

    02/22/2019, 9:25 PM
    hmm spaces could be the issue
  • r

    ryan

    02/22/2019, 9:25 PM
    where was the secret generated? is it something that Prisma generates or that you do? I don’t really know about prisma JWT stuff but I know about JWT in general
  • j

    Jerry Jäppinen

    02/22/2019, 9:26 PM
    It’s all in Prisma config and I’ve only used Prisma CLI to generate tokens so far
  • j

    Jerry Jäppinen

    02/22/2019, 9:27 PM
    (Which is only an issue due to the short expiration time)
  • j

    Jerry Jäppinen

    02/22/2019, 9:28 PM
    I’m tempted to test a new secret without spaces… but really? We’re just dealing with encoding strings here, and
    prisma.yml
    has it in quotes
  • r

    ryan

    02/22/2019, 9:29 PM
    spaces might be an issue with base 64 encoding
  • r

    ryan

    02/22/2019, 9:29 PM
    not sure if the secret is supposed to be base64 encoded in this case, but sometimes it is
  • j

    Jerry Jäppinen

    02/22/2019, 9:31 PM
    Ok… well I’ll try changing the secret on a local instance
  • r

    ryan

    02/22/2019, 9:32 PM
    (I could be wrong about the spaces)
  • r

    ryan

    02/22/2019, 9:33 PM
    but might be worth a shot 🙂
  • j

    Jerry Jäppinen

    02/22/2019, 9:33 PM
    I’m out of ideas 😄
  • j

    Jerry Jäppinen

    02/22/2019, 9:41 PM
    Alright, my new best friend @ryan - looks like you were right about the spaces 😛
  • r

    ryan

    02/22/2019, 9:41 PM
    awesome! glad to hear it worked 👍
  • j

    Jerry Jäppinen

    02/22/2019, 9:42 PM
    Thanks 🤘
    👌 2
  • j

    jt9001

    02/22/2019, 11:19 PM
    Hey all, I have a db type w/ ~12,000 items that I want to run a tagging script through, some of the tags will hit 60%+ of the items which will then want to mutate each of them, so ~7000. Is a batched mutation best for this?
  • j

    jt9001

    02/22/2019, 11:20 PM
    I have been concerned in the past with db load and tried to add pauses in between batches. Is this is a real concern or is there a better way to mitigate? Thanks for any help.
  • a

    Al

    02/23/2019, 8:20 AM
    Hello world, I see in some projects based on prisma something that I can't explain myself, for example a type that could be like this:
    Copy code
    type Model{
      id: ID!
      weight(unit: unit): Float #KG, LB
      text(locale: locale): String # EN, US, etc
    }
    How can I have a type like that in Prisma endpoint directly? Is it possible?
    h
    • 2
    • 6
  • j

    Jack Pritchard

    02/23/2019, 9:37 AM
    Has anyone experience with using DateTime as a type for a field? e.g.
    startDate
    and
    endDate
    ?
  • j

    Jack Pritchard

    02/23/2019, 9:37 AM
    I'm getting internal server errors and as it's on the demo server, I can't access the logs 😞
  • j

    Jack Pritchard

    02/23/2019, 10:08 AM
    Huh, works fine when deployed to my own Heroku server
  • j

    Jack Pritchard

    02/23/2019, 10:08 AM
    Worked itself out I guess 😅
    h
    • 2
    • 2
  • c

    ChiwanAhn

    02/23/2019, 1:06 PM
    Hello world 🙂 How did you solved server error issue like below?
    Copy code
    Whoops. Looks like an internal server error. Search your server logs for request ID: ...
    h
    • 2
    • 8
  • d

    darrindickey

    02/23/2019, 4:43 PM
    I don’t think I’m building my query the right way. I’ve got Prisma connecting to Postgres and I can do a successful query on localhost:4466. But I have this running in ApolloServer 2 and when I run that on localhost:4000 and do this query:
    Copy code
    query { 
    	users {
        id
        first_name
        last_name
        username
      }
    }
    I get this failure:
    Copy code
    "message": "Field \"users\" argument \"first_name\" of type \"String!\" is required but not provided.",
    There is a valid data row in the database.
  • l

    Lino Catucci

    02/23/2019, 6:04 PM
    hello, I have prisma version 1.12.0 running. Now i want to update to the latest version 1.27. What are the steps to upgrade? Do I also need to upgrade my docker container?
  • s

    Steve Mason

    02/23/2019, 6:19 PM
    Hey friends! I've been encountering an error with my prisma-client inside of my nodejs app:
    Copy code
    Error: Project not found: 'default_default'
    I'm a little confused about how to address it. Facts: - generated prisma client successfully (using MongoDB) - running nodejs app, mongo, and prisma inside docker-compose - prisma server is running and client is connected (mongo logs -
    Successfully authenticated as principal prisma on admin
    ) - was able to successfully add users via the prisma client into mongoDB at some point, can't figure out what I changed to break this Would really appreciate some experienced insight. Thanks!
    • 1
    • 1
  • j

    Julián Álvarez

    02/23/2019, 6:52 PM
    @Steve Mason can you share your docker-compose? I am in the step of connecting an Atlas database to a prisma server in DO and until now I cant figure out how to do that
    s
    • 2
    • 2
  • n

    notrab

    02/23/2019, 8:16 PM
    Would anyone here be interested in doing a Hangout on Nexus. Be good to chat and get the video on YouTube for others. Let me know if anyone is interested.
    w
    • 2
    • 1
  • z

    Zarazas

    02/23/2019, 9:12 PM
    Hello people, does anyone know of a public repo of a production-ready prisma/apollo-server/prisma-nexus server?
    l
    • 2
    • 2
1...223224225...637Latest