Giter VIP home page Giter VIP logo

chp_api's People

Contributors

akadapa avatar anonymous-271828 avatar aojesanmi avatar bettyli037 avatar di2ag-org avatar greghydedartmouth avatar pahmadi8740 avatar veenhouse avatar wangk8 avatar yakaboskic avatar

Watchers

 avatar  avatar

chp_api's Issues

Fork repo into NCATSTranslator Organization

Is your feature request related to a problem? Please describe.
We don't have a repo inside the NCATSTranslator organization. This is a requirement in https://docs.google.com/document/d/1jGIjN36-LxUyFR0ZtryCsuLe3pr0MR_xJvPr4juvJEw/edit

Describe the solution you'd like
Just fork our repo into the NCATSTranslator Organization.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Figure out how code updates work for github forks.

foo

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

302 error when hitting chp in dev

Describe the bug
I get a 302 http error message when I send queries to http://chp.thayer.dartmouth.edu/query

To Reproduce
Steps to reproduce the behavior:

  1. Open a terminal
  2. Run:
curl -X 'POST' \
  'http://chp.thayer.dartmouth.edu/query' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "message": {
    "query_graph": {
      "nodes": {
        "n0": {
          "ids": null,
          "categories": [
            "biolink:Gene"
          ],
          "constraints": []
        },
        "n1": {
          "ids": [
            "UBERON:0009835"
          ],
          "categories": [
            "biolink:GrossAnatomicalStructure"
          ],
          "constraints": []
        }
      },
      "edges": {
        "e0": {
          "predicates": [
            "biolink:expressed_in"
          ],
          "relation": null,
          "subject": "n0",
          "object": "n1",
          "constraints": []
        }
      }
    }
  }
}'

Expected behavior
I get a 200 response back with a valid TRAPI response

GET method not supported for query

Describe the bug
when using chp.dartmout.thayer.edu/query (as opposed to chp.dartmout.thayer.edu/query/) we get:

nginx_1 | 172.19.0.1 - - [12/May/2021:16:32:02 +0000] "POST /query HTTP/1.1" 301 0 "-" "python-httpx/0.16.1" "-"
web_1 | WARNING:django.request:Method Not Allowed: /query/

Expected behavior
Patrick seems to think its a weird issue with sending messages over http instead of https. Somehow it turns a POST into a GET without trailing forward slash.

Screenshots
error 1

Additional context
Determined in the graceful error handling session in may 2021 relay

Ill-formed Query Graph returns 502 error codes

Describe the bug
Requests to the CHP api using ill-formed query graphs results in a 502 error code being returned. 502 is a "Bad Gateway error". Confirmed in the docker log were the correct exception messages. Expected was a 500 error.

To Reproduce
Using the following Query Graph structure:

reasoner_std['query_graph']['nodes']['n0'] = { 'category':'biolink:Gene'}
reasoner_std['query_graph']['nodes']['n1'] = { 'category':'biolink:Drug',
'id':'CHEMBL:CHEMBL88'
}
reasoner_std['query_graph']['edges']['e0'] = { 'predicate':'biolink:affects',
'subject': 'n1',
'object': 'n0'
}
In the one-hop wildcard query will fail. The issue is that we anticipate the object node having the curie, whether ensembl for gene or chembl for drug.

Expected behavior
500 Error

Additional context
This issue should also double as a feature request.
At the message level we should include LogEntry objects (for specification see: https://github.com/NCATSTranslator/ReasonerAPI/blob/master/TranslatorReasonerAPI.yaml)
This object can hold on to our internal exception messages so that they can be passed back to the requester as well as other helpful debugging information.

Get on the ARS status page

Is your feature request related to a problem? Please describe.
We aren't on the Translator ARS status page and need to register, I think... Link to the page is here: https://ars.transltr.io/ars/app/status

Describe the solution you'd like
Talk to Chenyu or Jiwen about how to get on this page and then do it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.