Comments (7)
@brettasmi Here is an example of the test query and some details of the POST response we are currently getting.
{
"model": "tr_ars.message",
"pk": "0865aef7-4051-4268-8ced-6b08b20adad4",
"fields": {
"name": "",
"code": 405,
"status": "Error",
"actor": 11,
"timestamp": "2020-09-26T09:59:50.103Z",
"data": {
"message": {
"query_graph": {
"edges": [
{
"id": "e00",
"source_id": "n00",
"target_id": "n01",
"type": "treated_by"
}
],
"nodes": [
{
"curie": "MONDO:0021668",
"id": "n00",
"type": "disease"
},
{
"id": "n01",
"type": "chemical_substance"
}
]
}
},
"callback": "http://localhost:8000/ars/api/messages/0865aef7-4051-4268-8ced-6b08b20adad4",
"logs": [
"{\n "detail": "The method is not allowed for the requested URL.",\n "status": 405,\n "title": "Method Not Allowed",\n "type": "about:blank"\n}\n",
"Tr_ars.server: nginx/1.16.1",
"Tr_ars.date: Sat, 26 Sep 2020 09:59:50 GMT",
"Tr_ars.content-Type: application/problem+json",
"Tr_ars.content-Length: 142",
"Tr_ars.connection: keep-alive",
"Tr_ars.reason: METHOD NOT ALLOWED",
"Tr_ars.url: https://evidara.healthdatascience.cloud/api/v1/query"
]
},
"url": "https://evidara.healthdatascience.cloud/api/v1/query",
"ref": "2c6ec0f1-5fd1-4ed8-b185-1add781f888f"
}
}
from relay.
Thanks for the report Noel. I will try to recreate the issue locally and fix it. A quick glance suggests that query should be returning a 200 without results.
from relay.
suihuanglab/improving-agent#20
from relay.
based on the ARS call today, (im)Prove is compliant, but there is an error like "method is not allowed" when a TRAPI query is sent from the ARS. When it is sent directly, (im)Prove works fine.
from relay.
From the logs, I can see that there seems to be an unexpected callback
arg during deserialization of the Query
object.
It would be helpful to see the query that you are attempting to make so that I can try to reproduce it.
Also, see https://github.com/suihuanglab/improving-agent/blob/main/examples/improving_agent_examples.ipynb for working TRAPI 1.0 examples
from relay.
After some debugging with Mark yesterday, we discovered a couple things:
- Mark is able to hit imProving Agent manually via requests and the local dev instance of the ARS. However, the ARS queries were still failing on the
callback
key that isn't in the strict TRAPI spec. I've made some changes to accommodate that on our end. I can confirm that the following test query now is now processed by imProving Agent:
{
"message": {
"query_graph": {
"nodes": {
"n00": { "id": "MONDO:0018150", "category": "biolink:Disease" },
"n01": { "category": "biolink:ChemicalSubstance" }
},
"edges": { "e00": { "subject": "n00", "object": "n01" } }
}
},
"callback": "http://localhost:8000/ars/api/messages/8167a94e-6194-4706-8c84-2f69ad381035"
}
- the 405 remains from the production ARS. I've noticed that this is presenting symptoms similar to what I've seen when I accidentally call the http version of the
query
url. I see a 301 redirect in the nginx logs which converts the POST to a GET for uWSGI, which then returns a405
Could something be wrong with the production ARS's TLS/SSL config?
from relay.
registration is completed
from relay.
Related Issues (20)
- Normalized Scores Not Showing in CI HOT 1
- result_count has become always null? HOT 3
- Strange Edge Bindings in Merged Versions
- Exclude KPs from Merging. HOT 1
- Add functionality to excise a bad result
- TRAPI Validation Issue Regarding Unsecret Inforesid HOT 1
- Celery/RabbitMQ health endpoint
- Add default/fallback ordering_components when Appraiser call fails HOT 2
- Disease Merge Issues HOT 2
- Deregister Robokop
- Unsecret incorrectly being marked 598
- Explore use of partial saves for performance
- Clean up old branches
- Change Done status on parent PKs to reflect status of merged_versions
- Update kp-icees-kg urlRemote HOT 2
- ARS queries a subset of KPs? HOT 8
- Add Date/Time sent from ARS
- Change Retain endpoints to allow POST
- Edges being incorrectly removed
- Remove all ICEES kps from actors list HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relay.