tarrow / Headstart

A tool for creating web-based knowledge maps
https://openknowledgemaps.org/
Other
0 stars 0 forks source link

Some OpenAire Queries Fail To Build JSON Blob #1

Open tarrow opened 6 years ago

tarrow commented 6 years ago

HTTP Request and Response

http --timeout 600 -f http://localhost:9001/server/services/searchOpenAire.php q=SLADCORE project_id=809563 funding_level=fp7                   
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Connection: Keep-Alive
Content-Length: 144
Content-Type: application/json
Date: Thu, 15 Mar 2018 07:26:45 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.10 (Debian)
X-Powered-By: PHP/7.0.15

array(3) {
  ["q"]=>
  string(8) "SLADCORE"
  ["project_id"]=>
  string(6) "809563"
  ["funding_level"]=>
  string(3) "fp7"
}
{"status":"error"}

Entries in the apache logs (output from php and R)

headstart-backend     | Loading required package: NLP
headstart-backend     | 
headstart-backend     | Attaching package: 'proxy'
headstart-backend     | 
headstart-backend     | The following objects are masked from 'package:stats':
headstart-backend     | 
headstart-backend     |     as.dist, dist
headstart-backend     | 
headstart-backend     | The following object is masked from 'package:base':
headstart-backend     | 
headstart-backend     |     as.matrix
headstart-backend     | 
headstart-backend     | Loading required package: methods
headstart-backend     | Loading required package: fossil
headstart-backend     | Loading required package: sp
headstart-backend     | Loading required package: maps
headstart-backend     | Loading required package: shapefiles
headstart-backend     | Loading required package: foreign
headstart-backend     | 
headstart-backend     | Attaching package: 'shapefiles'
headstart-backend     | 
headstart-backend     | The following objects are masked from 'package:foreign':
headstart-backend     | 
headstart-backend     |     read.dbf, write.dbf
headstart-backend     | 
headstart-backend     | Loading required package: foreach
headstart-backend     | Loading required package: iterators
headstart-backend     | Loading required package: parallel
headstart-backend     | 
headstart-backend     | Attaching package: 'plyr'
headstart-backend     | 
headstart-backend     | The following object is masked from 'package:maps':
headstart-backend     | 
headstart-backend     |     ozone
headstart-backend     | 
headstart-backend     | Read 574 items
headstart-backend     | Warning message:
headstart-backend     | In weightSMART(x, spec = "ntn") : empty document(s): 13
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:20:42 +0000] "POST /server/services/searchOpenAire.php HTTP/1.1" 200 460 "-" "HTTPie/0.9.2"
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:21:39 +0000] "POST /server/services/searchOpenAire.php HTTP/1.1" 200 460 "-" "HTTPie/0.9.2"
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:21:49 +0000] "POST /server/services/searchOpenAire.php HTTP/1.1" 200 460 "-" "HTTPie/0.9.2"
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:22:46 +0000] "GET /server/services/getLatestRevision.php?vis_id=fd39fc6137113cfaa7022852e2455757 HTTP/1.1" 200 85976 "-" "HTTPie/0.9.2"
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:24:05 +0000] "GET /server/services/getLatestRevision.php?vis_id=fd39fc6137113cfaa7022852e2455757 HTTP/1.1" 200 85976 "-" "HTTPie/0.9.2"
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:24:45 +0000] "GET /server/services/getLatestRevision.php?vis_id=fd39fc6137113cfaa7022852e2455757 HTTP/1.1" 200 85976 "-" "HTTPie/0.9.2"
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:25:01 +0000] "GET /server/services/getLatestRevision.php?vis_id=fd39fc6137113cfaa7022852e2455757 HTTP/1.1" 200 85976 "-" "HTTPie/0.9.2"
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:25:23 +0000] "GET /server/services/getLatestRevision.php?vis_id=fd39fc6137113cfaa7022852e2455757&context=true HTTP/1.1" 200 89736 "-" "HTTPie/0.9.2"
headstart-backend     | Loading required package: NLP
headstart-backend     | 
headstart-backend     | Attaching package: 'proxy'
headstart-backend     | 
headstart-backend     | The following objects are masked from 'package:stats':
headstart-backend     | 
headstart-backend     |     as.dist, dist
headstart-backend     | 
headstart-backend     | The following object is masked from 'package:base':
headstart-backend     | 
headstart-backend     |     as.matrix
headstart-backend     | 
headstart-backend     | Loading required package: methods
headstart-backend     | Loading required package: fossil
headstart-backend     | Loading required package: sp
headstart-backend     | Loading required package: maps
headstart-backend     | Loading required package: shapefiles
headstart-backend     | Loading required package: foreign
headstart-backend     | 
headstart-backend     | Attaching package: 'shapefiles'
headstart-backend     | 
headstart-backend     | The following objects are masked from 'package:foreign':
headstart-backend     | 
headstart-backend     |     read.dbf, write.dbf
headstart-backend     | 
headstart-backend     | Loading required package: foreach
headstart-backend     | Loading required package: iterators
headstart-backend     | Loading required package: parallel
headstart-backend     | 
headstart-backend     | Attaching package: 'plyr'
headstart-backend     | 
headstart-backend     | The following object is masked from 'package:maps':
headstart-backend     | 
headstart-backend     |     ozone
headstart-backend     | 
headstart-backend     | Error in matrix(nrow = nrow(pubs_md)) : non-numeric matrix extent
headstart-backend     | Calls: get_papers -> build_pubs_metadata -> data.frame -> matrix
headstart-backend     | Execution halted
headstart-backend     | 172.17.0.1 - - [15/Mar/2018:07:26:45 +0000] "POST /server/services/searchOpenAire.php HTTP/1.1" 200 399 "-" "HTTPie/0.9.2"
tarrow commented 6 years ago

This is probably nothing to worry about. It is actually not an FP7 project. Perhaps we got no results.