di2ag / chp_api

The NCATS Connections Hypothesis Provider (CHP) API
Apache License 2.0
0 stars 11 forks source link

302 error when hitting chp in dev #58

Closed maximusunc closed 3 months ago

maximusunc commented 1 year ago

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

GregHydeDartmouth commented 1 year ago

@maximusunc can you try rerunning this now? I believe the issue is resolved. Let me know if it is not on your end.