Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Response for core/experiment/search #29

Open
Dryocopus opened this issue Jul 8, 2020 · 0 comments
Open

No Response for core/experiment/search #29

Dryocopus opened this issue Jul 8, 2020 · 0 comments

Comments

@Dryocopus
Copy link

I'm trying to find a way to do a search for core/experiment, but never get a response back from the API. I tried various ways to fill the parameters in the Swagger interface and a Python script. Some results of that are below.
Response object is always empty (also for the create method).

First load an Experiment


REQUEST START


Contacting service url: http://145.100.57.177:8666/rest/core/experiment/create


Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTYyNSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzODI1LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.AvpmUfx2jI-DDIZr9hT-OtJWGJEwcvx2Mwmx8pkVlnH_-UIdwFyxpmGqe9zS42C85YP8WH3sxnMibfu7hbqeBKixQ0u0Ael5yuRSfOBieIF4W9vA9_h8RVWU7EEv_dCKU9a0XHVRrnspzwY-X9jize_9Ap19bb6nYn927kbYhxqkqzoMD_3SDqk4p80JmeFg_AZVrtRXWyy6PwMg22N-GAuGz5gygXsn3xj6raFJ1Cmt6PVNrkw1rngPnYbABYtj74gaV4hqmTibRt0BbzihvrWPNbu7HpQCLQLGvohPFMxzY7n38XGWwe3dtmQld4ga-5x21763W2kPk6csMN7pCw'}


Request data:
{"uri": null, "label": "INIT-OPEN-FIELD-6", "objective": "Initial tests with vectors and sensors for the Open field module.", "comment": "Initial tests with vectors and sensors for the Open field module.", "campaign": "2020", "isPublic": true, "species": "http://aims.fao.org/aos/agrovoc/c_14386", "keywords": ["drone"], "projects": ["http://www.npectest01.nl/set/projects#project.bnpec-initialize-open-field-module"], "groups": ["os-g:project-manager2"], "infrastructures": [], "installations": [], "scientificSupervisors": ["os-u:julia.vanoord"], "technicalSupervisors": ["os-u:peter.roos"], "variables": ["http://www.npectest01.nl/opensilex/id/variables/v001"], "sensors": ["http://www.npectest01.nl/opensilex/2020/s20001"], "startDate": "2020-05-01", "endDate": "2020-06-30"}


Performing POST request...


URL:
'http://145.100.57.177:8666/rest/core/experiment/create'


Reponse code:
Status code 201


Reponse data:
<Response [201]>

REQUEST END


I can verify in the RDF4J workbench that it is loaded.

Then try to retrieve it:


REQUEST START


Contacting service url: http://145.100.57.177:8666/rest/core/experiment/search


Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTc1OSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzOTU5LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.lz_Lz6sRuPOqgCTrYO33TSMLWDlpgucZeidxa_7s0J5SVL4mIwoDXfWANVxI_GgTJ4lFMIkrdmOEr_Tissta5Gp7DBCs8bfkGYUI7bTJfTbSSMYIjMBK-AuEXVscUrnJ0RICtCZf2-XmnXyBW_AWKFsPULJLBa_9eALIrWIer_tE_4qBiK4YWCbgNq0DxpCm4CYh0g3gSBUY3WaQKRFFIRJHgCC_MtsqC2c95GYXe7mtFuBqkQcivwsJ59VZs2cTvmZOariRGcRCmuPZA-QHe54Dh-TBbfvwpkcwNgeBMatGMYIh2ElOX5Veyyyxz-5R3j7e0z-FLNDX6IFcesPppA'}


Request data:
{}


Performing GET request...


URL:
'http://145.100.57.177:8666/rest/core/experiment/search'


Reponse code:
Status code 204


Reponse data:
<Response [204]>

REQUEST END



REQUEST START


Contacting service url: http://145.100.57.177:8666/rest/core/experiment/search


Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTc1OSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzOTU5LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.lz_Lz6sRuPOqgCTrYO33TSMLWDlpgucZeidxa_7s0J5SVL4mIwoDXfWANVxI_GgTJ4lFMIkrdmOEr_Tissta5Gp7DBCs8bfkGYUI7bTJfTbSSMYIjMBK-AuEXVscUrnJ0RICtCZf2-XmnXyBW_AWKFsPULJLBa_9eALIrWIer_tE_4qBiK4YWCbgNq0DxpCm4CYh0g3gSBUY3WaQKRFFIRJHgCC_MtsqC2c95GYXe7mtFuBqkQcivwsJ59VZs2cTvmZOariRGcRCmuPZA-QHe54Dh-TBbfvwpkcwNgeBMatGMYIh2ElOX5Veyyyxz-5R3j7e0z-FLNDX6IFcesPppA'}


Request data:
{}


Performing GET request...


URL:
'http://145.100.57.177:8666/rest/core/experiment/search?label=.%2A'


Reponse code:
Status code 204


Reponse data:
<Response [204]>

REQUEST END



REQUEST START


Contacting service url: http://145.100.57.177:8666/rest/core/experiment/search


Header:
{'Content-Type': 'application/json', 'accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzUxMiJ9.eyJpc19hZG1pbiI6dHJ1ZSwic3ViIjoib3MtdTpwZXRlci5yb29zIiwiaXNzIjoib3BlbnNpbGV4IiwibmFtZSI6InBldGVyIHJvb3MgPHBldGVyLnJvb3NAd3VyLm5sPiIsImV4cCI6MTU5NDIwNTc1OSwiZ2l2ZW5fbmFtZSI6InBldGVyIiwiaWF0IjoxNTk0MjAzOTU5LCJmYW1pbHlfbmFtZSI6InJvb3MiLCJ1c2VyX2dyb3VwX3VyaXMiOltdLCJlbWFpbCI6InBldGVyLnJvb3NAd3VyLm5sIiwiY3JlZGVudGlhbHNfbGlzdCI6W119.lz_Lz6sRuPOqgCTrYO33TSMLWDlpgucZeidxa_7s0J5SVL4mIwoDXfWANVxI_GgTJ4lFMIkrdmOEr_Tissta5Gp7DBCs8bfkGYUI7bTJfTbSSMYIjMBK-AuEXVscUrnJ0RICtCZf2-XmnXyBW_AWKFsPULJLBa_9eALIrWIer_tE_4qBiK4YWCbgNq0DxpCm4CYh0g3gSBUY3WaQKRFFIRJHgCC_MtsqC2c95GYXe7mtFuBqkQcivwsJ59VZs2cTvmZOariRGcRCmuPZA-QHe54Dh-TBbfvwpkcwNgeBMatGMYIh2ElOX5Veyyyxz-5R3j7e0z-FLNDX6IFcesPppA'}


Request data:
{}


Performing GET request...


URL:
'http://145.100.57.177:8666/rest/core/experiment/search?label=INIT-OPEN-FIELD-6'


Reponse code:
Status code 204


Reponse data:
<Response [204]>

REQUEST END


@Dryocopus Dryocopus changed the title No Response for No Response for core/experiment/search Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant