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

How can I get the search errors? #1879

Open
felipefahrion opened this issue Aug 29, 2024 · 4 comments
Open

How can I get the search errors? #1879

felipefahrion opened this issue Aug 29, 2024 · 4 comments

Comments

@felipefahrion
Copy link

I just received a 500 error when searching for something that doesn't exist. Is there any way to return friendly error feedback?


      const options = {
        reference: genomeReference,
        search: {
          url: internal.url.com,
          chromosomeField: 'chr',
          displayName: 'symbol',
        },
      };
@felipefahrion felipefahrion changed the title How can I get the search erros? How can I get the search errors? Aug 29, 2024
@jrobinso
Copy link
Contributor

The 500 error is coming from your server (internal.url.com). What is the user seeing? Is there any helpful information in the server response?

@felipefahrion
Copy link
Author

@jrobinso yeps, it's a internal error.

I would like to show something to the user (e.g alert, modal, ...), just some feedback information. Do you how to get this error response?

The server is response is {"error":"More or less than 1 ensembl id associated with this gene symbol"}

@jrobinso
Copy link
Contributor

What does the user see now?

@jrobinso
Copy link
Contributor

There is nothing you can do at the moment to retrieve the server response and display it. This will require some igv.js changes. You can leave this issue open until there is a solution.

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