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

"Post to OTHER" doesn't work, although the query succeeds #1950

Closed
gaurav opened this issue Jan 17, 2023 · 4 comments
Closed

"Post to OTHER" doesn't work, although the query succeeds #1950

gaurav opened this issue Jan 17, 2023 · 4 comments
Assignees

Comments

@gaurav
Copy link

gaurav commented Jan 17, 2023

At https://arax.ncats.io/, I tried setting the EXTERNAL API (post query): to https://cam-kp-api-dev.renci.org/1.3.0/ and then running the following query using the "Post to OTHER" option:

Query to run
{
  "edges": {
    "e0": {
      "object": "n1",
      "predicates": [
        "biolink:related_to"
      ],
      "subject": "n0"
    }
  },
  "nodes": {
    "n0": {
      "categories": [
        "biolink:NamedThing"
      ],
      "fulltextname": "n0"
    },
    "n1": {
      "categories": [
        "biolink:NamedThing"
      ],
      "ids": [
        "CHEBI:8382"
      ],
      "fulltextname": "n1"
    }
  }
}

I get the error "An error was encountered while parsing the response from the remote server (no log; code:Success)". However, when using the network debugger, I can see that my TRAPI endpoint is being queried correctly. If I copy the JSON response into the ARAX Response Input box, it parses it correctly and displays my results correctly.

Is my endpoint returning something incorrectly?

@isbluis
Copy link
Member

isbluis commented Jan 18, 2023

Hello @gaurav . Please update the status in the response to "OK" instead of "Success" and see if that solves the issue.

@isbluis
Copy link
Member

isbluis commented Jan 25, 2023

Hello @gaurav , did this work and can we close the issue? Otherwise let us know if you are still getting an error.

@gaurav
Copy link
Author

gaurav commented Jan 31, 2023

Sorry for my very late reply, @isbluis! I haven't had a chance to try this out yet, but you can close this issue -- I'll reopen it if this doesn't fix the problem.

Do you know where "OK" as the appropriate status is recorded? The TRAPI documentation refers to "e.g. Success, QueryNotTraversable, KPsNotAvailable" -- if "OK" is the correct expected value, I think it should be added to that list.

https://github.com/NCATSTranslator/ReasonerAPI/blob/c5d101ab95719da62b2ee375469c9b19160dd30c/TranslatorReasonerAPI.yaml#L318

isbluis added a commit that referenced this issue Mar 15, 2023
Add link to Validation Codes Dictionary when viewing TRAPI validator results
Add simple histogram of scores for ARAX results (in Summary tab)
@isbluis isbluis closed this as completed Apr 1, 2023
@gaurav
Copy link
Author

gaurav commented Apr 4, 2023

Thanks, @isbluis! This fix works great for us :)

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

2 participants