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

Integrating Langsmith occurs an internal error #7877

Closed
5 tasks done
libukai opened this issue Sep 2, 2024 · 5 comments
Closed
5 tasks done

Integrating Langsmith occurs an internal error #7877

libukai opened this issue Sep 2, 2024 · 5 comments
Labels
🐞 bug Something isn't working

Comments

@libukai
Copy link

libukai commented Sep 2, 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

Copy link

dosubot bot commented Sep 2, 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 dosubot bot added the 🐞 bug Something isn't working label Sep 2, 2024
@crazywoola
Copy link
Member

Already fixed in #7684

@libukai
Copy link
Author

libukai commented Sep 2, 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

@crazywoola
Copy link
Member

crazywoola commented Sep 2, 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. #7676

@iray1991
Copy link

iray1991 commented Sep 4, 2024

@crazywoola still shows internal serval err for langsmith using 0.7.3

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants