Dart / Redstone - HTTPS Connection -


good morning,

i have problem, want make https connection, between api’s , server. use dart redstone dart layer. certificates validated.

i use redstone function’s: start (); make connection.

but have error during connection.

info: 2016-01-25 02:26:09.789: using secure connection options: {symbol("certificatename"): cn=redstone, symbol("context"): instance of '_securitycontext'}

unhandled exception: closure call mismatched arguments: function 'call'

nosuchmethoderror: incorrect number of arguments passed method named 'call' receiver: closure: (dynamic, int, securitycontext, {backlog: int, v6only: bool, requestclientcertificate: bool, shared: bool}) => future function 'bindsecure': static. tried calling: call("0.0.0.0", 9000, certificatename: "cn=redstone", context: instance of '_securitycontext', shared: false) found: call(address, port, context, backlog, v6only, requestclientcertificate, shared) »

this code snippet:

securitycontext servercontext = new securitycontext()   ..usecertificatechain(localfile('certificates/server_chain.pem'))   ..useprivatekey(localfile('certificates/server_key.pem'),   password: 'test'); var secureoptions = {#certificatename: "cn=redstone", #context: servercontext};  app.setupconsolelog(level.info);  app.start(port:9000, secureoptions: secureoptions); 

i have put right parameters, , don’t understand why still giving me error.

if someone, can me?

thanks you

this bug in redstone right (0.6) i'll make patch , make release asap. reporting this.


Comments