[ 
https://issues.apache.org/jira/browse/SOLR-18084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054143#comment-18054143
 ] 

Gus Heck commented on SOLR-18084:
---------------------------------

When I run it manually without the JQ I have to hit return to get the curl 
command to complete. Here's the verbose output from curl (not seeing anything 
significant, but maybe others will):
{code:java}
gus@ns-l1:~/projects/index-solr-ref-guide/code/index-solr-ref-guide$ curl -vvv  
http://localhost:8981/solr/admin/collections?action=LIST&wt=json 
[1] 2623218
gus@ns-l1:~/projects/index-solr-ref-guide/code/index-solr-ref-guide$ *   Trying 
127.0.0.1:8981...
* Connected to localhost (127.0.0.1) port 8981 (#0)
> GET /solr/admin/collections?action=LIST HTTP/1.1
> Host: localhost:8981
> User-Agent: curl/7.81.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Vary: Accept-Encoding
< Content-Security-Policy: default-src 'none'; base-uri 'none'; connect-src 
'self'; form-action 'self'; font-src 'self'; frame-ancestors 'none'; img-src 
'self' data:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 
'self'; worker-src 'self';
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Content-Type: application/json;charset=utf-8
< Content-Length: 79
< 
{
  "responseHeader":{
    "status":0,
    "QTime":0
  },
  "collections":[ ]
* Connection #0 to host localhost left intact
}^C
[1]+  Done                    curl -vvv 
http://localhost:8981/solr/admin/collections?action=LIST
gus@ns-l1:~/projects/index-solr-ref-guide/code/index-solr-ref-guide$ curl -vvv 
http://localhost:8981/solr/admin/info/system?wt=json 
*   Trying 127.0.0.1:8981...
* Connected to localhost (127.0.0.1) port 8981 (#0)
> GET /solr/admin/info/system?wt=json HTTP/1.1
> Host: localhost:8981
> User-Agent: curl/7.81.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Vary: Accept-Encoding
< Content-Security-Policy: default-src 'none'; base-uri 'none'; connect-src 
'self'; form-action 'self'; font-src 'self'; frame-ancestors 'none'; img-src 
'self' data:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 
'self'; worker-src 'self';
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Content-Type: application/json;charset=utf-8
< Content-Length: 5075
< 
{
  "responseHeader":{
    "status":0,
    "QTime":9
  },
  "mode":"solrcloud",

<SNIP - several screens of unremarkable JSON>

  "gpu":{
    "available":false
  },
  "node":"localhost:8981_solr"
* Connection #0 to host localhost left intact
} {code}

> Response for /admin/collections not completing (curl)
> -----------------------------------------------------
>
>                 Key: SOLR-18084
>                 URL: https://issues.apache.org/jira/browse/SOLR-18084
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: main(11.0)
>            Reporter: Gus Heck
>            Priority: Major
>
> Today I was fiddling around trying to script something and of course was 
> testing out curl commands, when I ran into odd behavior for 
> {code:java}
> /admin/collections?action=LIST&wt=json{code}
> When I run the curl command it connects and returns the json just fine, but 
> then seems to continue waiting as if it's still expecting more output. This 
> does not happen with
> {code:java}
> /admin/info/system?wt=json {code}
> This is signficant because I can't pipe the output to jq properly:
> {code:java}
> $ curl -s http://localhost:8981/solr/admin/collections?action=LIST&wt=json | 
> jq .collections
> [1] 2627086
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":1
>   },
>   "collections":[ ]
> }[1]+  Done                    curl 
> http://localhost:8981/solr/admin/collections?action=LIST
>  {code}
> vs
> {code:java}
> $ curl -s http://localhost:8981/solr/admin/info/system?wt=json | jq -r 
> .jvm.version
> 21.0.5 21.0.5+11-LTS {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to