-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Can't access flow directly by link #4528
Comments
Hey @amomra! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together! This issue seems related to a previously closed issue about a blank page or broken UI when accessing specific URLs directly [1]. The problem might be due to incorrect MIME types being served for JavaScript files, which can cause the browser to misinterpret the file contents. A solution that worked for a similar issue involved editing the Windows registry to change the Additionally, ensure that the routing is correctly set up to handle direct access to specific flow URLs. Langflow uses |
Looks Like it has been fixed in latest. I cross checked latest build its working. |
@irshadmb I tested the latest tag from langflowai/langflow image and the problem still persists. Here is my config environment variables: LANGFLOW_DATABASE_URL=postgresql://postgres:[email protected]:5432/langflow
LANGFLOW_AUTO_LOGIN=true
LANGFLOW_SUPERUSER=admin
LANGFLOW_SUPERUSER_PASSWORD=admin
LANGFLOW_NEW_USER_IS_ACTIVE=true
LANGFLOW_DO_NOT_TRACK=true
LANGFLOW_VARIABLES_TO_GET_FROM_ENVIRONMENT=AZURE_OPENAI_API_DEPLOYMENT_NAME,AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME,AZURE_OPENAI_API_KEY,AZURE_OPENAI_API_VERSION,AZURE_OPENAI_API_ENDPOINT Here is the deployment YAML that I used to deploy on our Kubernetes cluster (the apiVersion: apps/v1
kind: StatefulSet
metadata:
name: langflow
namespace: langflow
spec:
selector:
matchLabels:
app: langflow
serviceName: langflow
replicas: 1
template:
metadata:
labels:
app: langflow
spec:
containers:
- name: langflow
image: langflowai/langflow:latest
ports:
- containerPort: 7860
name: web
envFrom:
- secretRef:
name: langflow-config
volumeMounts:
- name: langflow-data
mountPath: /app/langflow
volumeClaimTemplates:
- metadata:
name: langflow-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: langflow-service
namespace: langflow
spec:
selector:
app: langflow
ports:
- port: 80
targetPort: 7860 I have an ingress configured for this service but the problem still happens without it (through service port forward). |
@amomra I am referring to latest code base. It will be available in upcoming release. |
@amomra today v1.1.0 is released. Please cross check and let us know. |
Bug Description
When you try to access a flow using it's URL (ex. http://localhost:55650/flow/0b95342f-6ce4-43d0-9d60-c28bf66a3781), the page doesn't load and in the browser's console is shown the following message:
Uncaught SyntaxError: Unexpected token '<' (at index-DK9323ab.js:1:1)
. I think that this problem is related to #1182 .Navegating through the main page to access this flow works fine. If I reload the page, it doesn't load as described before.
Reproduction
Expected behavior
To open the flow editor page.
Who can help?
No response
Operating System
Docker image (langflowai/langflow) running in K8s
Langflow Version
1.0.19
Python Version
None
Screenshot
Instead of loading the JS file, is loaded the HTML file as shown in the following picture:
All requests in this image loads the same HTML.
Flow File
No response
The text was updated successfully, but these errors were encountered: