Passing deleted document from v4 -> v10 causes error

,

Using fauna/faunadb:5.5.0 locally…

I have a UDF written in v4 that calls q.Delete, and returns that document. Then when I call that v4 UDF from v10 I get the following error:

java.lang.ClassCastException: class fauna.storage.doc.DeletedVersion cannot be cast to class fauna.storage.doc.LiveVersion (fauna.storage.doc.DeletedVersion and fauna.storage.doc.LiveVersion are in unnamed module of loader ‘app’) Please create a ticket at https://support.fauna.com java.lang.ClassCastException: class fauna.storage.doc.DeletedVersion cannot be cast to class fauna.storage.doc.LiveVersion (fauna.storage.doc.DeletedVersion and fauna.storage.doc.LiveVersion are in unnamed module of loader ‘app’)

I tried updating the v4 UDF so it doesn’t return the deleted document, but just true instead. But now it’s giving me this error:

java.lang.ClassCastException Please create a ticket at https://support.fauna.com java.lang.ClassCastException

Heya @wallslide! A few questions:

  • Are you able to replicate the issue on Fauna cloud? Or just locally with the docker image?
  • Can you share the UDFs and additional details about how it is called?
  • Is GraphQL involved?

The docker image has been updated more recently. Do you still have the same issue?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.