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.48k stars 7.44k forks source link

API based variable stopped working (again). #8977

Closed akkaz closed 1 month ago

akkaz commented 1 month ago

Self Checks

Dify version

0.8.3

Cloud or Self Hosted

Cloud

Steps to reproduce

The agent feature "API based variable" is stopped to work after few days of working since last bug as referred here:

7520

I’ve verified that the endpoint is correct and accessible through Insomnia, where everything works as expected. However, according to the Cloudflare logs, it appears that Dify isn't even attempting to reach the endpoint.

image

Dify agent don't respond to user message and return an "request timout" error.

Environment: We're using Hosted Dify (PRO subscription) on version 0.8.3 (signed as latest even if 0.9.1 is released on github).

✔️ Expected Behavior

It worked correctly for a couple of days.

❌ Actual Behavior

No response

dosubot[bot] commented 1 month ago

I found some similar closed issues that might help:

  1. API function(variable call) maybe abnormal in general application: Ensure your API correctly handles requests by returning result=pong when it receives point=ping. Verify that environment variables for API credentials are correctly set. Check logs for exceptions, especially in the invoke method of the LargeLanguageModel class [1].

  2. API extension not call: Ensure your API response includes a key named "result" with the query result. The API should handle the "point" parameter in the request body correctly [2].

  3. Connection timeout issues: Configure proxy settings in ~/.docker/config.json if applicable, and restart Docker [3].

These solutions might help resolve the "request timeout" error you're experiencing. Make sure your API endpoint is correctly configured and accessible.

To continue talking to Dosu, mention @dosu.

crazywoola commented 1 month ago

This is a different one, we are having troubles with send requests not only in api_based_variable but also some nodes in workflow.

crazywoola commented 1 month ago

Fixed

KevinZhang19870314 commented 1 week ago

Today, I encountered a similar issue where the agent response isn't calling the api-base extension API endpoint. Is this the same issue?

Will it be fixed in the next release? @crazywoola

version: 0.10.2

image