Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase not supported conversations #209

Open
fl3xice opened this issue Dec 24, 2023 · 8 comments
Open

Firebase not supported conversations #209

fl3xice opened this issue Dec 24, 2023 · 8 comments

Comments

@fl3xice
Copy link

fl3xice commented Dec 24, 2023

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

@rojvv
Copy link
Member

rojvv commented Dec 24, 2023

Are you using @grammyjs/storage-firestore?

@rojvv
Copy link
Member

rojvv commented Dec 24, 2023

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

@fl3xice
Copy link
Author

fl3xice commented Dec 25, 2023

Are you using ?@grammyjs/storage-firestore

Yeah

@fl3xice
Copy link
Author

fl3xice commented Dec 25, 2023

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
Copy link
Member

Is Firestore unable to handle nested arrays?

@KnorpelSenf KnorpelSenf transferred this issue from grammyjs/grammY Dec 26, 2023
@rojvv
Copy link
Member

rojvv commented Dec 26, 2023

cc @Satont

@Satont
Copy link
Member

Satont commented Dec 26, 2023

Is Firestore unable to handle nested arrays?

Seems like that.

@KnorpelSenf
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants