<_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "line 2 column 16: Expected some name. Got: lex.Item [6] "{" at 2:16"
debug_error_string = "{"created":"@1623205185.254896051","description":"Error received from peer ipv6:[::1]:9080","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"line 2 column 16: Expected some name. Got: lex.Item [6] "{" at 2:16","grpc_status":2}"
>
Question
Is anyone able to point out where I’m going wrong?
This query doesn’t make sense for me(right?). Looks like an update, but you are quering for the var “name” and in the update you are using the same var “name”(that will be $a) hoping to change something? Also, I’m not sure if using the code variable instead of DQL variable would be safe to use.
Yeah, I think you don’t understand what I meant. Your usage is “biased”. It will never update nothing, it will keep the loop of the same information over and over. As you are using the same variables. That’s the point.
PS. But yeah, with the cond and the upsert logic, that would be ignored for sure. So the issue must be the value in the variable.
So, print what is inside that variable so we can tell if it is related with formatting or something.
I think it may be related to the scope of the transaction, as there are other mutations using the same transaction happening before and after this method is called, but havent confirmed this theory yet.
I’ll do some experiments and let you know what I find.