grammyjs / storages

Storage adapters for grammY sessions.
48 stars 23 forks source link

Firebase not supported conversations #209

Open fl3xice opened 5 months ago

fl3xice commented 5 months ago
Error in middleware: 3 INVALID_ARGUMENT: Cannot convert an array value in an array value.
    Error: 3 INVALID_ARGUMENT: Cannot convert an array value in an array value.
        at callErrorFromStatus (D:\Projects\code-now-bot\node_modules\@grpc\grpc-js\src\call.ts:81:17)
        at Object.onReceiveStatus (D:\Projects\code-now-bot\node_modules\@grpc\grpc-js\src\client.ts:356:55)
        at Object.onReceiveStatus (D:\Projects\code-now-bot\node_modules\@grpc\grpc-js\src\client-interceptors.ts:454:34)
        at Object.onReceiveStatus (D:\Projects\code-now-bot\node_modules\@grpc\grpc-js\src\client-interceptors.ts:416:48)
        at D:\Projects\code-now-bot\node_modules\@grpc\grpc-js\src\resolving-call.ts:111:24
        at processTicksAndRejections (node:internal/process/task_queues:77:11)
export async function checkoutOrder(
  conversation: MyConversation,
  ctx: CodeNowBotContext,
) {
  await ctx.reply(getTextByContext("questions.details.message", ctx));
  const orderDetails = await conversation.form.text();
  botLogger.debug(orderDetails);
  return;
}

I got this when try to use conversations with firebase storage adapter

roj1512 commented 5 months ago

Are you using @grammyjs/storage-firestore?

roj1512 commented 5 months ago

The stack trace doesn’t even include the word grammY...

fl3xice commented 5 months ago

Are you using ?@grammyjs/storage-firestore

Yeah

fl3xice commented 5 months ago

The stack trace doesn’t even include the word grammY...

This is not the entire stack trace

I found the same problem in the archived repository, here is the Issue

KnorpelSenf commented 5 months ago

Is Firestore unable to handle nested arrays?

roj1512 commented 5 months ago

cc @Satont

Satont commented 5 months ago

Is Firestore unable to handle nested arrays?

Seems like that.

KnorpelSenf commented 5 months ago

Can the storage adapter be changed to only store json strings then?