I’m getting this error in my Prisma 1.19 server lo...
# orm-help
f
I’m getting this error in my Prisma 1.19 server log:
[SubscriptionSessionActor] Received unknown message: com.prisma.subscriptions.protocol.SubscriptionProtocolV07$Requests$GqlConnectionTerminate$@7313ce90
Any idea why?
n
what messages are you sending via WS?
f
The only WS I use is Prisma subscriptions for some entities. However, I wasn’t even using the service when I got 4 of these errors during 1 hour. Weird 🤷‍♂️
n
What is "Prisma subscriptions"?
n
Well, yea 🙂
What subscription client do you use?
f
I’m using apollo-server v2 and graphql-subscriptions package. A typical resolver looks like this:
Copy code
packageCreated: {
    subscribe: (parent, args, { db }, info) =>
      db.subscription.package(
        {
          where: {
            mutation_in: [CREATED],
          },
        },
        info
      ),
  },
(with prisma-binding)
n
ok. for context: 1) my first guess when seeing your original error message is that you are using a subscription client that sends an unexpected message. 2) my second guess for this is that there is a bug in Prisma - however I'd like to investigate this possibility only once we erradicated possibility 1).
the situation becomes difficult to inspect due to the three layers - client, server (the code you shared), Prisma. Can you try to reproduce the error by making subscriptions against Prisma directly, without a server?
f
I see, I’ll try to do it during the weekend. In any case, it’s the first time I see that error and looks like it doesn’t show again 🤔 Thanks for the answers!
🙌 1
n
I also never saw this error before! Might be a one-off weirdness 🙂