langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.46k stars 7.43k forks source link

Integrating Langsmith occurs an internal error #7877

Closed libukai closed 2 months ago

libukai commented 2 months ago

Self Checks

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

dosubot[bot] commented 2 months ago

@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.

crazywoola commented 2 months ago

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

libukai commented 2 months ago

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 commented 2 months ago

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

iray1991 commented 2 months ago

@crazywoola still shows internal serval err for langsmith using 0.7.3

image