File tree 1 file changed +6
-6
lines changed
api/core/workflow/nodes/http_request
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,6 @@ def __init__(
82
82
node_data .authorization .config .api_key
83
83
).text
84
84
85
- # check if node_data.url is a valid URL
86
- if not node_data .url :
87
- raise InvalidURLError ("url is required" )
88
- if not node_data .url .startswith (("http://" , "https://" )):
89
- raise InvalidURLError ("url should start with http:// or https://" )
90
-
91
85
self .url : str = node_data .url
92
86
self .method = node_data .method
93
87
self .auth = node_data .authorization
@@ -114,6 +108,12 @@ def _initialize(self):
114
108
def _init_url (self ):
115
109
self .url = self .variable_pool .convert_template (self .node_data .url ).text
116
110
111
+ # check if url is a valid URL
112
+ if not self .url :
113
+ raise InvalidURLError ("url is required" )
114
+ if not self .url .startswith (("http://" , "https://" )):
115
+ raise InvalidURLError ("url should start with http:// or https://" )
116
+
117
117
def _init_params (self ):
118
118
"""
119
119
Almost same as _init_headers(), difference:
You can’t perform that action at this time.
0 commit comments