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

Chat Widget Network Error Issue #14

Open
clusterpj opened this issue Jun 16, 2024 · 2 comments
Open

Chat Widget Network Error Issue #14

clusterpj opened this issue Jun 16, 2024 · 2 comments

Comments

@clusterpj
Copy link

I am having an issue making the widget to work on a website. For the purpose of this I have langflow with a domain assigned with a cloudflare tunnel.

Whenever I try to chat with it from the website on the console, I get this:

[06/16/24 18:50:02] ERROR 2024-06-16 18:50:02 - ERROR - main - TaskService.__init__() main.py:34 missing 1 required positional argument: 'settings_service'

I have Followed all instructions to the dot on how to build the chat, below is my code:

<script src="https://cdn.jsdelivr.net/gh/logspace-ai/langflow-embedded-chat@main/dist/build/static/js/bundle.min.js"></script>
<langflow-chat
    window_title="Cluster Assistant"
    host_url="http://localhost:7860"
    flow_id="4d8b23cb-9884-4b0a-ae62-0cc8fe6396e4"
    chat_inputs='{"text":""}'
    chat_input_field="text"
    style="position: absolute; bottom: 50px; right: 50px;"
  ></langflow-chat>

First assuming it will work right away I attach it on my website but i was getting the network error below, then i gave it a try locally and i still get the same issue.

image

@BerlinWong
Copy link

我通过解析bundle.min.js,大致找到了错误原因,你可以尝试这样做⬇️
全局搜索/api/v1/process/字段
你应该能搜到唯一一个结果,将其改为
/api/v1/run/

By analyzing bundle.min.js, I roughly found the cause of the error. You can try doing this ⬇️
Globally search for the /api/v1/process/ field
You should find a unique result, change it to
/api/v1/run/

@nicoloboschi
Copy link

You need to import the right script file

<script src="https://cdn.jsdelivr.net/gh/langflow-ai/[email protected]/dist/build/static/js/bundle.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants