@church This is similar to an earlier post of mine which did not have a satisfactory answer: Make your js query fail and trigger calling onFailure()
You mostly answer that question! return Promise.reject("Invalid options") does indeed cause onFailure to fire.
But I still do not get the message so I have no idea why is failed. Did you figure that part out as well?
Thanks and I'll mention this post on that thread.