Integrating Langsmith occurs an internal error #5333

Closed
opened 2026-02-21 18:10:28 -05:00 by yindo · 5 comments
Owner

Originally created by @libukai on GitHub (Sep 1, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.7.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After creating a Langsmith project through testing code and verifying that the API KEY is correct. Then, an unsuccessful attempt was made to integrate langsmith in Dify's application, which resulted in an error.

✔️ Expected Behavior

No response

Actual Behavior

image

CleanShot 2024-09-02 at 09 56 24@2x

Originally created by @libukai on GitHub (Sep 1, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.7.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After creating a Langsmith project through testing code and verifying that the API KEY is correct. Then, an unsuccessful attempt was made to integrate langsmith in Dify's application, which resulted in an error. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior ![image](https://github.com/user-attachments/assets/24b42c32-ef35-4051-a185-852871fbc035) ![CleanShot 2024-09-02 at 09 56 24@2x](https://github.com/user-attachments/assets/86766b27-7a2a-4b4c-b226-a4b2d2a33fca)
yindo added the 🐞 bug label 2026-02-21 18:10:28 -05:00
yindo closed this issue 2026-02-21 18:10:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 1, 2024):

@libukai Hello there! I'm here to help you with any bugs, questions, or contributions you have while waiting for a human maintainer. I'm Dosu, a bot designed to assist with software-related inquiries.

I found a similar issue regarding an "Internal Server Error" when integrating Langsmith in Dify's self-hosted application. Here are some steps to resolve this issue:

  1. Ensure Correct API Key and Project Name: Verify that the API Key and project name you are using in the Dify configuration match exactly with those created in LangSmith. Any mismatch can cause errors.

  2. Check API Key Permissions: Ensure that the API Key you generated in LangSmith has the necessary permissions for the operations you are trying to perform.

  3. Review Configuration Steps: Follow the configuration steps precisely as outlined in the documentation:

    • Register/Login to LangSmith.
    • Create a project in LangSmith.
    • Generate a project API Key.
    • Configure LangSmith in the Dify application by pasting the API Key and project name into the configuration.
  4. Inspect Logs for Detailed Error Information: Check the server logs of your Dify application for more detailed error messages that can provide clues about the cause of the "Internal Server Error".

  5. Network and Connectivity Issues: Ensure there are no network issues or firewall rules blocking the connection between Dify and LangSmith.

If the issue persists after following these steps, you may need to provide more specific error logs or details for further troubleshooting [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 1, 2024): <!-- Greeting --> @libukai Hello there! I'm here to help you with any bugs, questions, or contributions you have while waiting for a human maintainer. I'm Dosu, a bot designed to assist with software-related inquiries. <!-- Answer --> I found a similar issue regarding an "Internal Server Error" when integrating Langsmith in Dify's self-hosted application. Here are some steps to resolve this issue: 1. **Ensure Correct API Key and Project Name**: Verify that the API Key and project name you are using in the Dify configuration match exactly with those created in LangSmith. Any mismatch can cause errors. 2. **Check API Key Permissions**: Ensure that the API Key you generated in LangSmith has the necessary permissions for the operations you are trying to perform. 3. **Review Configuration Steps**: Follow the configuration steps precisely as outlined in the documentation: - Register/Login to LangSmith. - Create a project in LangSmith. - Generate a project API Key. - Configure LangSmith in the Dify application by pasting the API Key and project name into the configuration. 4. **Inspect Logs for Detailed Error Information**: Check the server logs of your Dify application for more detailed error messages that can provide clues about the cause of the "Internal Server Error". 5. **Network and Connectivity Issues**: Ensure there are no network issues or firewall rules blocking the connection between Dify and LangSmith. If the issue persists after following these steps, you may need to provide more specific error logs or details for further troubleshooting <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/monitoring/integrate-external-ops-tools/integrate-langsmith.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Sep 1, 2024):

Already fixed in https://github.com/langgenius/dify/pull/7684

@crazywoola commented on GitHub (Sep 1, 2024): Already fixed in https://github.com/langgenius/dify/pull/7684
Author
Owner

@libukai commented on GitHub (Sep 1, 2024):

And the integration of Langfuse is also unsuccessful.

When submit the configuration, the following error occurred:

1 validation error for LangfuseConfig project_key Field required [type=missing, input_value={'public_key': 'pk-lf-3e1.../us.cloud.langfuse.com'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.8/v/missing
@libukai commented on GitHub (Sep 1, 2024): And the integration of Langfuse is also unsuccessful. When submit the configuration, the following error occurred: ``` 1 validation error for LangfuseConfig project_key Field required [type=missing, input_value={'public_key': 'pk-lf-3e1.../us.cloud.langfuse.com'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.8/v/missing ```
Author
Owner

@crazywoola commented on GitHub (Sep 1, 2024):

And the integration of Langfuse is also unsuccessful.

When submit the configuration, the following error occurred:

1 validation error for LangfuseConfig project_key Field required [type=missing, input_value={'public_key': 'pk-lf-3e1.../us.cloud.langfuse.com'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.8/v/missing

This is fixed as well. https://github.com/langgenius/dify/issues/7676

@crazywoola commented on GitHub (Sep 1, 2024): > And the integration of Langfuse is also unsuccessful. > > When submit the configuration, the following error occurred: > > ``` > 1 validation error for LangfuseConfig project_key Field required [type=missing, input_value={'public_key': 'pk-lf-3e1.../us.cloud.langfuse.com'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.8/v/missing > ``` This is fixed as well. https://github.com/langgenius/dify/issues/7676
Author
Owner

@iray1991 commented on GitHub (Sep 4, 2024):

@crazywoola still shows internal serval err for langsmith using 0.7.3

image

@iray1991 commented on GitHub (Sep 4, 2024): @crazywoola still shows internal serval err for langsmith using 0.7.3 ![image](https://github.com/user-attachments/assets/935f9c3f-a3fd-4104-90a0-f506a010cc80)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5333