Issue trying to persist large message: Exception in thread "main" io.grpc.StatusRuntimeException: CANCELLED: HTTP/2 error code: CANCEL


#1

I am trying to persist a large script , and i get the error in the title. What is the best practice to insert big messages? Can I modify the max message size from somewhere?

In my script, I guess if i have a single “insert” , it treats it as a single “message”, while if i have the “insert” keyword in front of every entity definition, it should treat it as a separate message - is my reasoning correct?

Thank you,
Angel


#2

I built Grakn from source, i saw that around 9 days ago the max message size was bumped to 2 GB, but this didn’t really help. When i try to insert a big query with lots of statements (single insert), grakn is taking a tremendous amount of time and eventually either crashes or I get errors like this one:

Exception in thread “main” io.grpc.StatusRuntimeException: UNKNOWN
at io.grpc.Status.asRuntimeException(Status.java:526)