mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 19:59:11 +08:00
fix: incorrect paths to upgrade plugins
This commit is contained in:
parent
f6136427a4
commit
56bd0dedfe
@ -134,10 +134,10 @@ class BasePluginManager:
|
|||||||
try:
|
try:
|
||||||
error = PluginDaemonError(**json.loads(rep.message))
|
error = PluginDaemonError(**json.loads(rep.message))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ValueError(f"got error from plugin daemon: {rep.message}, code: {rep.code}")
|
raise ValueError(f"{rep.message}, code: {rep.code}")
|
||||||
|
|
||||||
self._handle_plugin_daemon_error(error.error_type, error.message, error.args)
|
self._handle_plugin_daemon_error(error.error_type, error.message, error.args)
|
||||||
raise ValueError(f"got error from plugin daemon: {rep.message}, code: {rep.code}")
|
raise ValueError(f"{rep.message}, code: {rep.code}")
|
||||||
if rep.data is None:
|
if rep.data is None:
|
||||||
raise ValueError("got empty data from plugin daemon")
|
raise ValueError("got empty data from plugin daemon")
|
||||||
|
|
||||||
@ -176,7 +176,7 @@ class BasePluginManager:
|
|||||||
raise PluginDaemonInnerError(code=rep.code, message=rep.message)
|
raise PluginDaemonInnerError(code=rep.code, message=rep.message)
|
||||||
|
|
||||||
self._handle_plugin_daemon_error(error.error_type, error.message, error.args)
|
self._handle_plugin_daemon_error(error.error_type, error.message, error.args)
|
||||||
raise ValueError(f"got error from plugin daemon: {rep.message}, code: {rep.code}")
|
raise ValueError(f"plugin daemon: {rep.message}, code: {rep.code}")
|
||||||
if rep.data is None:
|
if rep.data is None:
|
||||||
raise ValueError("got empty data from plugin daemon")
|
raise ValueError("got empty data from plugin daemon")
|
||||||
yield rep.data
|
yield rep.data
|
||||||
|
@ -184,7 +184,7 @@ class PluginInstallationManager(BasePluginManager):
|
|||||||
"""
|
"""
|
||||||
return self._request_with_plugin_daemon_response(
|
return self._request_with_plugin_daemon_response(
|
||||||
"POST",
|
"POST",
|
||||||
f"plugin/{tenant_id}/management/upgrade",
|
f"plugin/{tenant_id}/management/install/upgrade",
|
||||||
PluginInstallTaskStartResponse,
|
PluginInstallTaskStartResponse,
|
||||||
data={
|
data={
|
||||||
"original_plugin_unique_identifier": original_plugin_unique_identifier,
|
"original_plugin_unique_identifier": original_plugin_unique_identifier,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user