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
Workflow HTTP request node keeps resetting to default on its own - restore fails as well #4011
Comments
To address the issue with the HTTP request node settings not being properly saved and persisted across sessions in Dify version 0.6.5, focus on enhancing the persistence and loading mechanisms. This involves ensuring that changes to the HTTP request node settings are correctly persisted to a backend service, local storage, or another persistence layer, and that these settings are accurately loaded when the app initializes or when the HTTP request node is loaded. Here's a strategy to resolve the issue:
Here's a conceptual example for enhancing the persistence mechanism within a React component or hook: function useConfig(nodeId, initialData) {
const [data, setData] = useState(initialData);
// Update settings and persist changes
const updateSettings = async (newSettings) => {
setData(newSettings); // Update local state
await persistSettings(nodeId, newSettings); // Persist changes
};
// Load settings on hook initialization
useEffect(() => {
const loadSettings = async () => {
const savedSettings = await fetchSettings(nodeId);
if (savedSettings) {
setData(savedSettings); // Override defaults with saved settings
}
};
loadSettings();
}, [nodeId]);
return [data, updateSettings];
} This example demonstrates integrating persistence logic into the state management of the HTTP request node. Adapt this to fit the actual architecture and data handling mechanisms used by Dify.
|
Same issue i am facing also! |
Thanks for speaking up @Yash-1511! Hoping it will get some attention soon. |
+1 |
FYI still confirmed to be an issue on 0.6.6 on managed solution. |
I face the same issue too It seems a frontend issue, when you add this http request pannel once, it auto saved works. But when you re-opened this pannel, the http method always init to POST, body always reset to None. |
the new version 0.6.7 resolve this issue |
Self Checks
Dify version
Version 0.6.5
Cloud or Self Hosted
Cloud
Steps to reproduce
See attached video.
Screen.Recording.2024-04-30.at.10.24.09_comp.mov
✔️ Expected Behavior
Setting are retained and visible in panel
❌ Actual Behavior
Setting selv delete/hide on page reload
The text was updated successfully, but these errors were encountered: