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