facebookresearch / esm

Evolutionary Scale Modeling (esm): Pretrained language models for proteins
MIT License
2.97k stars 586 forks source link

requests.exceptions.SSLError :: Streamlit #654

Open tcchola opened 5 months ago

tcchola commented 5 months ago

Context Hello, I'm no expert so I'm putting up this bug report. I was using the ESM Fold API for a while in my own Streamlit app when it suddenly game me this error. I checked the solo esm fold streamlit app page and saw that the same error would occur when trying to use the app. If this is an ESM Fold server problem on their part, by when cant it be fixed? Or should I look for a different API?

Bug description An SSL Error appearing when pressing the "Predict" button.

Reproduction steps Press "Predict" button while not null.

requests.exceptions.SSLError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).

Traceback

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 530, in _run_script
    self._session_state.on_script_will_rerun(rerun_data.widget_states)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/safe_session_state.py", line 61, in on_script_will_rerun
    self._state.on_script_will_rerun(latest_widget_states)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 500, in on_script_will_rerun
    self._call_callbacks()
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 513, in _call_callbacks
    self._new_widget_state.call_callback(wid)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 260, in call_callback
    callback(*args, **kwargs)
File "/mount/src/esmfold/streamlit_app.py", line 34, in update
    response = requests.post('https://api.esmatlas.com/foldSequence/v1/pdb/', headers=headers, data=sequence)
File "/home/adminuser/venv/lib/python3.9/site-packages/requests/api.py", line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)