Skip to content

Commit

Permalink
temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
amadolid committed Aug 22, 2024
1 parent c0212b2 commit dbcf79f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jaseci_core/jaseci/extens/act_lib/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import requests
from jaseci.jsorc.live_actions import jaseci_action
from jaseci.utils.utils import logger


@jaseci_action()
Expand Down Expand Up @@ -219,13 +220,21 @@ def trigger(
if _files:
kwargs["files"] = _files

logger.error("#####################")
logger.error(url)
logger.error(header)
logger.error(kwargs)
logger.error(act)

res = act(url, headers=header, **kwargs)
ret = {"status_code": res.status_code}
try:
ret["response"] = res.json()
except Exception:
ret["response"] = res.text

logger.error(ret)

for stream in stream_to_be_close:
stream.close()

Expand Down

0 comments on commit dbcf79f

Please sign in to comment.