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

API search error #380

Open
dmath21 opened this issue Nov 2, 2024 · 1 comment
Open

API search error #380

dmath21 opened this issue Nov 2, 2024 · 1 comment

Comments

@dmath21
Copy link

dmath21 commented Nov 2, 2024

Expected Behavior

submit a file in PDB format to the Foldseek search server using the API and getting a page with the results back

Current Behavior

Instead of the page/file with the results when the ticket status is complete I get a 404 page not found error.

Context

(base) ~ % curl -X POST -F q=@/Users/dm/Desktop/pdb_files/P21184.pdb -F 'mode=3diaa' -F 'database[]=afdb50' https://search.foldseek.com/api/ticket

{"id":"jx-DXH0THcvJajgdlYpSNPIdfhqiYATkOjzEcA","status":"COMPLETE"}

(base) ~ % curl -X GET https://search.foldseek.com/api/ticket/jx-DXH0THcvJajgdlYpSNPIdfhqiYATkOjzEcA
{"id":"jx-DXH0THcvJajgdlYpSNPIdfhqiYATkOjzEcA","status":"COMPLETE"}

(base) ~ % curl -X GET https://search.foldseek.com/api/result/jx-DXH0THcvJajgdlYpSNPIdfhqiYATkOjzEcA
404 page not found

Your Environment

Include as many relevant details about the environment you experienced the bug in.

  • Git commit used (The string after "MMseqs Version:" when you execute foldseek without any parameters): na
  • Which foldseek version was used (Statically-compiled, self-compiled, Conda, etc.): webserver
  • For self-compiled and Homebrew: Compiler and Cmake versions used and their invocation: na
  • Server specifications (especially CPU support for AVX2/SSE and amount of system memory): na
  • Operating system and version: macOS Ventura 13.0
@milot-mirdita
Copy link
Member

You have to add a /0 to the end to specify you want the first hit:

https://search.foldseek.com/api/result/jx-DXH0THcvJajgdlYpSNPIdfhqiYATkOjzEcA/0

This is to deal with multiple queries (or multiple chains) in the monomer search.

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