使用Gatling运行模拟时,我会遇到以下异常:
jnConnectException:已在使用的地址:无更多信息
当测试的服务器无法响应或超时时,是否会发生这种情况?我想确保这是服务器而不是客户端抛出的异常.
我正在尝试在select上创建一个包装器指令,我正在尝试将"name"属性分配给select
指示
<form name=myform>
<selectformfield label="Select Orders" id="id_1" name="orderselection"
selectedval="obj.order" options="Orders" />
</form>
Run Code Online (Sandbox Code Playgroud)
我将我的指令定义为
mainApp
.directive(
'selectformfield',
function() {
return {
restrict : 'E',
transclude : true,
scope : {
label : '@',
id : '@',
selectedval : '=',
options : '=',
name: '='
},
template : "<select class='form-control' ng-model='selectedval' name='{{name}}' ng-options='item as item.name for item in options' required><option value=''>-- select --</option></select>"
};
});
Run Code Online (Sandbox Code Playgroud)
我试图通过控制器中的myform访问select的name属性,比如console.log($ scope.myForm.orderselection),我得到了undefined
如果我在指令中对名称进行硬编码,那么我就可以访问属性console.log($ scope.myForm.orderselection)
我在这里遗失任何东西.我必须做任何后期编译或其他什么?
使用 Docker 远程 API 时,我不断收到 CORS 错误。
正如 Docker 文档提到的,我确实设置了标志:
"api-cors-header" : "*",
Run Code Online (Sandbox Code Playgroud)
我仍然没有看到Access-Control-Allow-Origin: *响应标头上设置的标头。
我正在使用 Docker 1.13 实验性的。
这是我的 API 版本:
{
"Version": "1.13.0-rc3",
"ApiVersion": "1.25",
"MinAPIVersion": "1.12",
"GitCommit": "4d92237",
"GoVersion": "go1.7.3",
"Os": "linux",
"Arch": "amd64",
"KernelVersion": "4.8.12-moby",
"Experimental": true,
"BuildTime": "2016-12-06T01:15:44.725283878+00:00"
}
Run Code Online (Sandbox Code Playgroud)
我在这里错过了什么吗?