I am using Mission Control version 1.1
我正在使用Mission Control 1.1版
I attempted to communicate to the REST API that I wanted to create a repository. My JSON input is below:
我试图与我想要创建存储库的REST API进行通信。我的JSON输入如下:
{
"scriptMappings": [{
"scriptNames": ["virtual-repo"],
"scriptUserInputs": [{
"TemplateExecutor#0#name#0": "%s"
}, {
"TemplateExecutor#0#region#0": "%s"
}],
"instanceName": "us-east-1a"
}]
}
I have verified that my configuration script allows both of those user variables. When I change the user input to only be one value like so (along with the config script):
我已经验证我的配置脚本允许这两个用户变量。当我将用户输入更改为只有一个这样的值(以及配置脚本):
{
"scriptMappings": [{
"instanceName": "us-east-1a",
"scriptUserInputs": {
"TemplateExecutor#0#name#0": "%s"
},
"scriptNames": ["virtual-repo"]
}]
}
The REST API works just fine.
REST API工作得很好。
The error message I get is huge, but it's basically a Jackson error that says "Can not deserialize instance of java.util.LinkedHashMap out of START_ARRAY token". I've worked with Jackson before and have received this when I couldn't deserialize a JSON array object properly into my data models, so I assume that is what's happening here.
我得到的错误信息是巨大的,但它基本上是一个Jackson错误,上面写着“无法从START_ARRAY令牌中反序列化java.util.LinkedHashMap的实例”。我以前和杰克逊一起工作过,当我无法将JSON数组对象正确地反序列化到我的数据模型中时,我已经收到了这个,所以我认为这就是这里发生的事情。
Has anyone else had this issue, or resolved it?
有没有其他人有这个问题,或解决了吗?
2 个解决方案
#1
1
It looks like a bug. The best way to resolve it is contacting JFrog support (support@jfrog.com).
它看起来像一个bug。解决问题的最佳方法是联系JFrog支持(support@jfrog.com)。
#2
1
This is a bug in JFrog. I have opened the following support ticket for reference: https://support.jfrog.com/support/tickets/40899
这是JFrog中的一个错误。我已打开以下支持服务单以供参考:https://support.jfrog.com/support/tickets/40899
The correct JSON to accomplish this looks like the following:
完成此任务的正确JSON如下所示:
{
"scriptMappings":[
{
"instanceName" : "us-east-1a",
"scriptNames" : ["docker-remote-repo"],
"scriptUserInputs":
{
"TemplateExecutor#0#region#0": "%s",
"TemplateExecutor#0#url#0": "%s",
"TemplateExecutor#0#name#0": "%s"
}
}
]
}
#1
1
It looks like a bug. The best way to resolve it is contacting JFrog support (support@jfrog.com).
它看起来像一个bug。解决问题的最佳方法是联系JFrog支持(support@jfrog.com)。
#2
1
This is a bug in JFrog. I have opened the following support ticket for reference: https://support.jfrog.com/support/tickets/40899
这是JFrog中的一个错误。我已打开以下支持服务单以供参考:https://support.jfrog.com/support/tickets/40899
The correct JSON to accomplish this looks like the following:
完成此任务的正确JSON如下所示:
{
"scriptMappings":[
{
"instanceName" : "us-east-1a",
"scriptNames" : ["docker-remote-repo"],
"scriptUserInputs":
{
"TemplateExecutor#0#region#0": "%s",
"TemplateExecutor#0#url#0": "%s",
"TemplateExecutor#0#name#0": "%s"
}
}
]
}