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

BUG-If I configure the base_url in gui.run, and I will get the blank website in web browser. #840

Open
2 tasks
LiuYuWei opened this issue Jan 25, 2024 · 8 comments
Labels
🖧 Devops Operations, monitoring, maintenance, deployment, packaging 📄 Documentation Internal or public documentation 🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟧 Priority: High Stalls work on the project or its dependents 🔒 Staff only Restricted to CC staff members
Milestone

Comments

@LiuYuWei
Copy link

Description
A complete and clear description of the problem.
If I configure the base_url in gui.run, and I will get the blank website in web browser.

How to reproduce

if __name__ == "__main__":
    df_selection, sales_by_product_line, sales_by_hour = filter(
        city, customer_type, gender
    )
    Gui(page).run(margin="0em", title="Sales Dashboard", base_url="/taipy/")

Expected behavior
Description of what would be the expected outcome.

I can see the dashboard in http://localhost:5000/taipy/

Screenshots
When available and relevant, screenshots to better highlight the problem.

None

Runtime environment
Please specify relevant indications.

  • Taipy version (or branch name):

v3.0.0

  • OS: [e.g. Linux, Windows] and version

docker: https://docs.taipy.io/en/develop/manuals/run-deploy/deploy/docker/development/

  • Browser: [e.g. Chrome, Edge, Safari] and version (if relevant)

Chrome

and any other relevant information.

Acceptance Criteria

  • Ensure new code is unit tested, and check code coverage is at least 90%
  • Create related issue in taipy-doc for documentation and Release Notes if relevant
@LiuYuWei LiuYuWei added the 💥Malfunction Addresses an identified problem. label Jan 25, 2024
@FlorianJacta
Copy link
Member

This code is not working as well locally.

from taipy.gui import Gui

Gui("# Taipy App").run(base_url="/taipy")

@LiuYuWei
Copy link
Author

Is anyone know that how to fix the error?

@FlorianJacta FlorianJacta added 🖧 Devops Operations, monitoring, maintenance, deployment, packaging 🖰 GUI Related to GUI 🟧 Priority: High Stalls work on the project or its dependents labels Jan 29, 2024
@FlorianJacta
Copy link
Member

The base_url is to be used when working with a proxy. The base_url is basically for deployment usage only and not locally.

It is a way to let Taipy know if the base path is hosted on a different base route. What is your use case for using base_url?

@LiuYuWei
Copy link
Author

LiuYuWei commented Feb 5, 2024

Hi @FlorianJacta

We can put the application into our platform app store and the user can create the app by themselves. Our app service needs to use url prefix for each unique app pod. If the environment variable needs other method to combine together, then I think I cannot put into our service platform. Do you have method without proxy? Thanks!

@FlorianJacta
Copy link
Member

FlorianJacta commented Feb 5, 2024

If the requirement is for a local setup for a single application, modifying the page name could suffice:

prefix_url = "prefix/"
pages = {
    prefix_url + 'page_1': page_1,
    prefix_url + 'page_2': page_2
}

Gui(pages=pages).run()

This approach allows for simple redirection within the local context of a single Taipy application. However, when involving multiple Taipy applications, a more robust proxy solution is necessary. We can help you on that.

@jrobinAV jrobinAV added 📄 Documentation Internal or public documentation 🔒 Staff only Restricted to CC staff members labels Feb 9, 2024
@jrobinAV
Copy link
Member

jrobinAV commented Feb 9, 2024

We need to add some documentation on that.

@jrobinAV jrobinAV added this to the Community 3.1 milestone Feb 12, 2024
@jrobinAV jrobinAV transferred this issue from Avaiga/taipy Feb 26, 2024
@jrobinAV jrobinAV added the 💬 Discussion Open for discussion and feedback label Mar 11, 2024
@jrobinAV jrobinAV removed the 💬 Discussion Open for discussion and feedback label May 21, 2024
Copy link

github-actions bot commented Jun 5, 2024

This issue has been labelled as "🥶Waiting for contributor" because it has been inactive for more than 14 days. If you would like to continue working on this issue, please add another comment or create a PR that links to this issue. If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. Otherwise, you will be unassigned in 14 days. For more information please refer to the contributing guidelines.

@github-actions github-actions bot added the 🥶Waiting for contributor Issues or PRs waiting for a long time label Jun 5, 2024
@github-actions github-actions bot removed the 🥶Waiting for contributor Issues or PRs waiting for a long time label Jun 20, 2024
Copy link

This issue has been unassigned automatically because it has been marked as "🥶Waiting for contributor" for more than 14 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖧 Devops Operations, monitoring, maintenance, deployment, packaging 📄 Documentation Internal or public documentation 🖰 GUI Related to GUI 💥Malfunction Addresses an identified problem. 🟧 Priority: High Stalls work on the project or its dependents 🔒 Staff only Restricted to CC staff members
Projects
None yet
Development

No branches or pull requests

4 participants