Closed danialcheung closed 2 weeks ago
Hello @danialcheung! I'm here to help you with any bugs, questions, or contributions you may have for the Dify repository. Feel free to ask for assistance while we wait for a human maintainer.
I found some relevant information that might help address the issue you're encountering.
http://host.docker.internal:19530/
instead of 127.0.0.1:19530
. Make sure Docker's WSL 2 based engine is configured to add *.docker.internal
names to the host's etc/hosts
file.CODE_EXECUTION_ENDPOINT
and CODE_EXECUTION_API_KEY
environment variables are correctly configured and that the code execution service is running and accessible.code_executor.py
to better diagnose issues:
try:
response = post(str(url), json=data, headers=headers, timeout=CODE_EXECUTION_TIMEOUT)
if response.status_code == 503:
raise CodeExecutionException('Code execution service is unavailable')
elif response.status_code != 200:
raise Exception(f'Failed to execute code, got status code {response.status_code}, please check if the sandbox service is running')
except CodeExecutionException as e:
raise e
except Exception as e:
raise CodeExecutionException('Failed to execute code, this is likely a network issue, please check if the sandbox service is running')
Minified React error #31 typically occurs due to issues with component state or props. Here are some general steps to resolve it:
The WorkflowPreview
component in Dify is responsible for displaying different panels based on the workflow state. It has dependencies on several React components like ResultText
, ResultPanel
, TracingPanel
, etc. Ensure these components are functioning correctly and that their state and props are managed properly [3].
The api/extensions/ext_sentry.py
module is responsible for handling client-side exceptions and error reporting in Dify. It initializes Sentry for error tracking and integrates it with Flask and Celery [4].
If the issue persists, consider checking the browser console for specific error messages and reviewing the application and service logs for more detailed insights.
To continue talking to Dosu, mention @dosu.
Update: I have found that disabling the "Follow-up" feature has solved the issue for now.
Could you please give me the app DSL to reproduce it? @danialcheung
@iamjoel Sure, I've made a simple workflow that causes the error. Nothing special about it other than having the 'Follow-up' feature enabled. Just rename the extension back to .yml
For Debugging.yml.txt
Maybe the issue is caused by qwen2:72b to generate the 'Follow-up' suggestions. I don't have the api key of qwen2:72b . I can't reproduce the issue when I use models of openai with 'Follow-up' feature enabled.
When the issue happens, see if the suggested-questions
api return the errror info. @danialcheung
Self Checks
Dify version
0.7.1, 0.7.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Application error: a client-side exception has occurred
shows up after an LLM has given its reply to a user. This occurs during a workflow preview, as well as at the 'explore' section. Frequency is undetermined as sometimes it will take a few messages for it to show an error, whereas other times it will output an error instantly after the first message has been replied to.Upgraded from
0.7.1
to0.7.2
and the error persists.✔️ Expected Behavior
An error to not occur.
❌ Actual Behavior
Application error: a client-side exception has occurred
caused byMinified React error #31
.