I have been having this issues for weeks where if I try and start a chat with opus, have an attachment and paste in the prompt. it gives me an undefined error.
Seems to not happen if I wait a while before submitting the prompt.

example:
x-kagi-trace e435778c0c0ff50e09a6042801e25eb9 & 045c2703981e6e2eb4799009906350a5