#Micro-service throws a RCPException But Controller gets 500
18 messages · Page 1 of 1 (latest)
@leaden vine when you have time, I'd like if you please take a look of this
And when you have time, I'd like you to take a look at our rules int he welcome channel again. Specifically number 6 😉
You will never get an err to be instanceof RpcExceptin because the error has tobe serialized and deserialized between the microservice server and the client
You can create your own proxy extension that does deserialize it though
Sorry for this. I didn't know, I'll be aware of that for next opportunities.
On the other hand should I extend the clientProxy and override the deserializer method?
You can
So, this will work for that? return new RcpException(err.message) I saw something similar in a forum
Try it out and see 🙂
The last question, why the initial code that I paste here works If I didn't implement a deserializer method?
thanks in advance
All that this will do is return false everytime there is an exception from the microservice server
No, I got actually the RCPException. Should I sent a file o piece of code, just let me know
Yeah, cause I wouldn't expect to see RPCException unless it came from within the same server