@@ -154,7 +154,7 @@ def __init__(
154
154
self ._orig_url = url
155
155
self ._capabilities_cache = LazyLoadCache ()
156
156
super ().__init__ (
157
- root_url = self .version_discovery (url , session = session , timeout = default_timeout ),
157
+ root_url = self .version_discovery (url , session = session , timeout = default_timeout , retry = retry ),
158
158
auth = auth , session = session , default_timeout = default_timeout ,
159
159
slow_response_threshold = slow_response_threshold ,
160
160
retry = retry ,
@@ -170,7 +170,11 @@ def __init__(
170
170
171
171
@classmethod
172
172
def version_discovery (
173
- cls , url : str , session : Optional [requests .Session ] = None , timeout : Optional [int ] = None
173
+ cls ,
174
+ url : str ,
175
+ session : Optional [requests .Session ] = None ,
176
+ timeout : Optional [int ] = None ,
177
+ retry : Union [urllib3 .util .Retry , dict , bool , None ] = None ,
174
178
) -> str :
175
179
"""
176
180
Do automatic openEO API version discovery from given url, using a "well-known URI" strategy.
@@ -179,7 +183,7 @@ def version_discovery(
179
183
:return: root url of highest supported backend version
180
184
"""
181
185
try :
182
- connection = RestApiConnection (url , session = session )
186
+ connection = RestApiConnection (url , session = session , retry = retry )
183
187
well_known_url_response = connection .get ("/.well-known/openeo" , timeout = timeout )
184
188
assert well_known_url_response .status_code == 200
185
189
versions = well_known_url_response .json ()["versions" ]
0 commit comments