error 400 version discriminator
Hello,
I get the following message once I install typebot with easypanel.
This typebot versión is 3.9.0
An error occurred while loading the bot.
{
"status": 400,
"body": {
"message": "Input validation failed",
"code": "BAD_REQUEST",
"data": {
"code": "BAD_REQUEST",
"httpStatus": 400,
"path": "startChatPreview"
},
"issues": [
{
"code": "invalid_union_discriminator",
"options": [
"3",
"4",
"5",
"6"
],
"path": [
"typebot",
"version"
],
"message": "Invalid discriminator value. Expected '3' | '4' | '5' | '6'"
}
]
}
how to solve?
13 Replies
It seems you are trying to load a typebot that does not have a valid schema
can you share it?
oh yes:
{"version":"6.1","id":"cmdytjjd8000zok1zpydquroo","name":"test","events":[{"id":"y2pa0krn6atatosn0r4qj5le","outgoingEdgeId":"zmx0fzmnvsb751rz0d5rz1lv","graphCoordinates":{"x":0,"y":0},"type":"start"}],"groups":[{"id":"we5ygqy8ukth9dii3tpc603y","title":"Group #1","graphCoordinates":{"x":265,"y":51},"blocks":[{"id":"n9woa6ec60jifp8fnn3oa0pp","type":"text","content":{"richText":[{"type":"p","children":[{"text":"Test 1"}]}]}}]}],"edges":[{"id":"zmx0fzmnvsb751rz0d5rz1lv","from":{"eventId":"y2pa0krn6atatosn0r4qj5le"},"to":{"groupId":"we5ygqy8ukth9dii3tpc603y"}}],"variables":[],"theme":{},"selectedThemeTemplateId":null,"settings":{},"createdAt":"2025-08-05T17:34:10.893Z","updatedAt":"2025-08-05T17:34:27.845Z","icon":null,"folderId":null,"publicId":null,"customDomain":null,"workspaceId":"cmdrn4m7b0000s21zl3t1u84d","resultsTablePreferences":null,"isArchived":false,"isClosed":false,"whatsAppCredentialsId":null,"riskLevel":null}
I know the issue is the version but I don't know how to fix it
Oh right that's because your instance is not up to date
so it does not expect a bot with version 6.1
you need to upgrade your instance
Thanks, but I updated the instance to version 3.10.0, but I'm getting the same error as the version 6.1... or is there a specific instance I need to update?
I'm using EasyPanel, and I don't know if that has anything to do with this error.
This is the same error message?
"message": "Invalid discriminator value. Expected '3' | '4' | '5' | '6'"
If so, then your instance was not updatedThanks for the input. I followed your recommendation and reinstalled it, and now I have the beta version of Gmail... and it gave me the same version error...
Do you think this is because it doesn't delete temporary files?
Is there a specific file you recommend I upload manually from the repository for this problem?

Please paste the error you get, maybe it's another error message
this is message:
An error occurred while loading the bot.
{
"status": 400,
"body": {
"message": "Input validation failed",
"code": "BAD_REQUEST",
"data": {
"code": "BAD_REQUEST",
"httpStatus": 400,
"path": "startChatPreview"
},
"issues": [
{
"code": "invalid_union_discriminator",
"options": [
"3",
"4",
"5",
"6"
],
"path": [
"typebot",
"version"
],
"message": "Invalid discriminator value. Expected '3' | '4' | '5' | '6'"
}
]
As additional information, I found that what is wrong is the Docker image that generates this specific error... if I install it separately manually, it works correctly.
Yes, like I said, it means your instance was not upgraded correctly.
You were absolutely right. I've already updated correctly...
I just wanted to say thank you — your advice really helped me fix the last issue I was struggling with. Now everything is running smoothly, and I finally have the full experience I was aiming for.
As a way of showing my appreciation, I’ll be making a small donation through GitHub. simply because I value the project and your support. Keep up the amazing work — Typebot is truly powerful, and I’m glad to be using it!
That's greatly appreciated, thanks Daniel 🙌
@Daniel My friend, I'm having the same error, and I also have EasyPanel installed.
Can you please tell me how you solved it?
in source code the typebot-builder make sure you have: baptistearno/typebot-builder:latest
and
in source code ithe typebot-viewer make sure you have: baptistearno/typebot-viewer:latest