2016-01-24 4 views
3

Доброе утро,Dart/Redstone - Соединение с HTTPS

У меня есть проблема, я хочу, чтобы установить соединение по протоколу HTTPS, между моим API, и мой сервер. Я использую Дарт с слоем Дарстоуна Дарта. Все мои сертификаты проверены.

Я использую функцию RedStone: start(); чтобы сделать это соединение.

Но у меня есть ошибка во время соединения.

INFO: 2016-01-25 02:26:09.789: Using a secure connection with options: {Symbol("certificateName"): CN=RedStone, Symbol("context"): Instance of '_SecurityContext'}

Unhandled exception: Closure call with mismatched arguments: function 'call'

NoSuchMethodError: incorrect number of arguments passed to method named 'call' Receiver: Closure: (dynamic, int, SecurityContext, {backlog: int, v6Only: bool, requestClientCertificate: bool, shared: bool}) => Future from 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) »

Это мой фрагмент кода:

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); 

Я поставил правильные параметры, и я не понимаю, почему он до сих пор дает мне ошибку.

Если кто-то может мне помочь?

Спасибо Вам

ответ

2

Это ошибка в Redstone прямо сейчас (0,6) Я сделаю патч и сделать релиз как можно скорее. Спасибо, что сообщили об этом.

+0

Спасибо, Пакане –

Смежные вопросы