【发布时间】:2017-04-20 07:00:48
【问题描述】:
我试图使用提供的其余 api 创建配置架构。执行给定的 curl 命令时出现以下错误。请帮忙。 抱歉,我不得不掩盖一些信息。
C:\xxxx>curl -v -S -u test:test123 -F'configuration
Schema={"applicationId":"32768","name":"Test configuration schema","description"
:"Configuration Schema Description"};type=application/json' -F file=@configurati
onschema.json "http://xx.xx.xx.xx:8080/kaaAdmin/rest/api/configurationSchema"
| python -mjson.tool
* Trying xx.xx.xx.xx...
* TCP_NODELAY set
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0*
Connected to xx.xx.xx.xx (xx.xx.xxx.xx) port 8080 (#0)
* Server auth using Basic with user 'test'
* WARNING: Using weak random seed
> POST /kaaAdmin/rest/api/configurationSchema HTTP/1.1
> Host: xx.xx.xx.xx:8080
> Authorization: Basic c3JlZTp0ZXN0MTIz
> User-Agent: curl/7.53.1
> Accept: */*
> Content-Length: 750
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=------------------------df9c304eed
a5285e
>
0 750 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0*
Done waiting for 100-continue
} [407 bytes data]
100 750 0 0 100 750 0 46 0:00:16 0:00:16 --:--:-- 0<
HTTP/1.1 404 Not Found
< Date: Tue, 18 Apr 2017 05:04:20 GMT
< Set-Cookie: JSESSIONID=1nlr86kwwgbv612ia314pqj68w;Path=/
< Content-Type: text/html; charset=ISO-8859-1
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Length: 321
< Server: Jetty(9.2.2.v20140723)
* HTTP error before end of send, stop sending
<
{ [321 bytes data]
100 1071 100 321 100 750 19 45 0:00:16 0:00:16 --:--:-- 0
* Closing connection 0
No JSON object could be decoded
【问题讨论】:
标签: kaa