This commit is contained in:
hrwx
2019-09-13 17:04:01 +00:00
committed by prssanna
parent c6b7695ab5
commit 5aa8743024
3 changed files with 12 additions and 5 deletions

View File

@@ -36,8 +36,8 @@ def get_webhook_address(connector_name, method, exclude_uri=False):
try:
url = frappe.request.url
except RuntimeError:
url = frappe.utils.get_url()
url = "http://localhost:8000"
server_url = '{uri.scheme}://{uri.netloc}/api/method/{endpoint}'.format(uri=urlparse(url), endpoint=endpoint)
return server_url
return server_url