Streamlit bug only when accessing it through my phone, not on desktop

I can successfully run my Streamlit app on desktop but when I run it on a mobile device I get this error and I don’t know why. Here’s the stack trace from mobile:

requests.exceptions.InvalidSchema: 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).

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
File "/mount/src/recipescraper/streamlit.py", line 263, in <module>
    df_download = create_df(recs, num_people)
File "/mount/src/recipescraper/streamlit.py", line 135, in create_df
    scraper = scrape_me(recipe)
File "/home/adminuser/venv/lib/python3.9/site-packages/recipe_scrapers/__init__.py", line 487, in scrape_me
    return scraper(url_path, **options)
File "/home/adminuser/venv/lib/python3.9/site-packages/recipe_scrapers/_abstract.py", line 40, in _init_
    resp = requests.get(
File "/home/adminuser/venv/lib/python3.9/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **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 697, in send
    adapter = self.get_adapter(url=request.url)
File "/home/adminuser/venv/lib/python3.9/site-packages/requests/sessions.py", line 794, in get_adapter
    raise InvalidSchema(f"No connection adapters were found for {url!r}")

app

Hello @jrodriguez5909,

Thank you for bringing this to our attention!

I’ve tested the app using various mobile user agents and was able to access it without any issues. Could you please restart the app and check if the problem persists on your mobile device?

If the issue continues, it would be good to know your mobile user agent. You can easily get it by visiting a site like https://www.whatsmyua.info/ from your phone.

Looking forward to your feedback.

Best,
Charly

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.