This commit is contained in:
yumoqing 2025-08-14 15:31:44 +08:00
parent 1115e444cc
commit 2ab7930e08

View File

@ -157,7 +157,11 @@ class UAPI:
url = self.env.get('baseurl') + api.path
method = api.httpmethod
headers = await self.rendertmpl(api.headers)
headers = json.loads(headers)
try:
headers = json.loads(headers)
except Exception as e:
exception(f'{e}, {headers=},{api.headers=}')
raise e
body = await self.rendertmpl(api.data)
if body:
try: