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

cannot load pdb with parameters #2

Closed
interXadmin opened this issue Apr 15, 2022 · 4 comments
Closed

cannot load pdb with parameters #2

interXadmin opened this issue Apr 15, 2022 · 4 comments

Comments

@interXadmin
Copy link

I am trying to load a pdb with params (like token) but it seems that the format is not recognized because it does not split the parmeters from the file name

@samirelanduk
Copy link
Owner

I'm not sure I understand - can you give an example of the code you are trying to run?

@interXadmin
Copy link
Author

Hi
I am trying to use molstar-react to show a pdb from url.

the url I am using e.g. is:

url = 'https://firebasestorage.googleapis.com/v0/b/pipeline-gui.appspot.com/o/6tfp.pdb?alt=media&token=32fd66d0-33c9-4f22-902f-83ac5f9a96f4?st'
passed as a prop to

however I see that molstar downloads the file but does not show anything.

I see in the console that there was an error undentifying the file type and the reason is it does not separate 6tfp.pdb from the parameters so it gets .pdb?alt... as file type and throws an error.

if I put the same file on a different server with no params it works fine.

Gil

@samirelanduk
Copy link
Owner

Ah I see - ok this should be an easy fix. I'll release a new version with the fix in the next few days. Thanks for flagging.

@samirelanduk
Copy link
Owner

Should be fixed now.

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