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

https://achtman-lab.github.io/maketree throws 405 error #1

Closed
jhc9-cdc opened this issue Aug 29, 2024 · 2 comments
Closed

https://achtman-lab.github.io/maketree throws 405 error #1

jhc9-cdc opened this issue Aug 29, 2024 · 2 comments

Comments

@jhc9-cdc
Copy link

In testing the referenced achtman-lab instance of grapetree, I am getting a 405 error trying to initiate a grapetree session (https://achtman-lab.github.io/maketree) and failed to load resource. Thus, when I try to load a SNP distance tsv file, it says it Cannot Connect to the backend server. It doesn't have this issue when I load the local install of the win version. What do you recommend to resolve this configuration issue? How did you resolve it with your Grapetree Extended version?

@aldelucaizs
Copy link
Collaborator

Thanks for reaching out!

You are right, the original grapetree's attempt to connect to the /maketree backend service, which is indicated by the cannot_connect flag being set to true when the backend service is unreachable or returns a 405 error.

In the original grapetree code, try_backend() function is called on page load to check the connection to the backend (https://github.com/achtman-lab/GrapeTree/blob/f92fe3e04247fef9b080abcb0fe14b4b3fd0b8ab/MSTree_holder.html#L1006).

The error "Cannot Connect to the backend server" is likely triggered when the function distributeFile() is executed during file drag and drop (https://github.com/achtman-lab/GrapeTree/blob/f92fe3e04247fef9b080abcb0fe14b4b3fd0b8ab/static/js/tree/grapetree_fileHandler.js#L147)

In our extended version of grapetree, we don't encounter this issue because we completely bypassed any connection to their backend. This means our version does not depend on the /maketree service, eliminating the possibility of encountering this specific 405 error.

Feel free to reach out if you need further assistance or if you'd like to discuss this in more detail!

@jhc9-cdc
Copy link
Author

jhc9-cdc commented Sep 3, 2024 via email

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

3 participants