Could you refer to this post or this one
There I tryed to make a compilation of RPC troubles & solutions