https://discord.gg/botpress logo
Unable to Publish bot in Studio, 400 error
# 🤝help
l
Hey Izzy, can you try hard refreshing / clearing cookies session data?
b
Did, rebooted, fresh login. Same error.
@loud-crowd-60573 I think this might be related to summary agent failing. There is a hook that doesn't appear to exist and it's throwing a zod error: https://cdn.discordapp.com/attachments/1447946176706908362/1447962053598908497/image.png?ex=6939873f&is=693835bf&hm=d65f6f144eaacc81e1741e688d8bc03a830dcfa2ee469191cea17c2bd3a9d8e8&
Could be unrelated, but seems problematic.
Nm. summary agent not related. Switched by changing model.
The tough part is this affects my ability to test/share the bot via preview link. It's not showing the latest version of the bot.
I would love to go to support for this, but I have a grandfathered plan, and the next step from PAYG is $500~ month 🥲
w
@boundless-article-48300 could you please try cloning your bot/exporting to another workspace?
Exporting...
w
jesus
your browser might be cursed too, if you'd please try another one
l
Yeah it's likely going to be one of the typical fixes
If all fails maybe it's an internet connection issue
b
I have cleared cache, browser, and rebooted. Testing in Brave and Edge. I can try again.
I imported the bot into a new workspace. It works, but it does not have recent changes.
w
your bot might be corrupted or something
since the new changes aren't being saved
i think your best option is to copy the changes to the new bot and use it as your primary one
the "copy to bot" function might help you, but it probably won't really copy the recent changes since they're not being saved
b
Trying that now.
Copy brought both errors over with it. I just did an overhaul of the variable scopes and broke the main flow into workflow 😞 fml
Alright, I got the emulator error to clear, but the publishing issue still exists. Anything you guys can do to look into that would be greatly appreciated. Error is: mt: "nullable" cannot be used without "type" (Status Code: 400)
w
i think botpress owes mixpanel money LO
unless you're using mixpanel, then you owe them money
b
nope! Not using.
Not sure if this is helpful to dev team, but this function is causing an error in both the Axios request and mixpanel errors. Same line (128) and js file (index-D0dRquBV.js) for both errors. https://cdn.discordapp.com/attachments/1447946176706908362/1448000672917360801/image.png?ex=6939ab36&is=693859b6&hm=ea756279eadb15fb15a4e8fe52b94d9433ae3c062453cd81240c44caa70efd47&
So, I rebuilt and is working. I stripped a failing clone node by node, then action by action, then variable by variable, testing publish in between. Still failing.
Copy/paste nodes and rebuilding vars (painful) one by one worked. Must have corrupted some meta data somewhere, and it was coming over with the copies. Anyways, all done now. 👍
a
yo @boundless-article-48300 I responded in your DM
b
Fixed confirmed. Ty @User !
For anyone who revisits this, I had made an output object nullable that was a union of string and number. It ended up making more sense to offload the action (since it was sequenced and not dynamically called) to an adjacent node. TL;DR careful using nullable with zod schema.