@@ -144,11 +144,6 @@ def info(path, urlbase, params=None, headers=None, model=None, auth_token=None):
144144 return json if model is None else model (** json )
145145
146146
147- def subscribe (root , urlbase , auth_token ):
148- url = _sub_url (urlbase , f"api/subscribe/{ root } " )
149- return _xpost (url , auth_token = auth_token )
150-
151-
152147def fetch_data (path , urlbase , params , auth_token = None , as_blosc2 = False ):
153148 url = _sub_url (urlbase , f"api/fetch/{ path } " )
154149 response = _xget (url , params = params , auth_token = auth_token )
@@ -237,15 +232,8 @@ def __init__(self, path: str, /, urlbase: str | None = None, auth_token: str | N
237232 # Try to 'open' the remote path
238233 try :
239234 self .meta = info (self .path , self .urlbase , auth_token = self .auth_token )
240- except requests .HTTPError :
241- # Subscribe to root and try again. It is less latency to subscribe directly
242- # than to check for the subscription.
243- root , _ = self .path .split ("/" , 1 )
244- subscribe (root , self .urlbase , self .auth_token )
245- try :
246- self .meta = info (self .path , self .urlbase , auth_token = self .auth_token )
247- except requests .HTTPError as err :
248- raise FileNotFoundError (f"Remote path not found: { path } .\n Error was: { err } " ) from err
235+ except requests .HTTPError as err :
236+ raise FileNotFoundError (f"Remote path not found: { path } .\n Error was: { err } " ) from err
249237 cparams = self .meta ["schunk" ]["cparams" ]
250238 # Remove "filters, meta" from cparams; this is an artifact from the server
251239 cparams .pop ("filters, meta" , None )
0 commit comments