rforce icon indicating copy to clipboard operation
rforce copied to clipboard

rforce binding raises undefined method error for invalid urls

Open desheikh opened this issue 11 years ago • 4 comments

with force 0.11 calling rforce binding with invalid url would raise a URI::InvalidURIError.

RForce::Binding.new('xxx', 'yyy').getUserInfo

This seems to have regressed in 0.12 and crashes with the error undefined method `post2' for nil:NilClass.

desheikh avatar Dec 17 '14 02:12 desheikh

Thanks for reporting this! v0.11 always attempted a connection first. In v0.12, we moved that behavior to the two login methods.

I've modified Binding to attempt a connection before doing any remote calls. Calling a remote method should now throw a bad URI or a refused connection, depending on what the invalid URI looks like.

undees avatar Jan 05 '15 23:01 undees

@undees, thanks for the quick fix, any chance you could do a point release for it?

desheikh avatar Feb 03 '15 23:02 desheikh

Done!

undees avatar Feb 09 '15 00:02 undees

:+1: :)

desheikh avatar Feb 10 '15 00:02 desheikh