You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<timed exec> in <module>
/opt/conda/lib/python3.8/site-packages/satsearch/search.py in items(self, limit, page_limit, headers)
88 def items(self, limit=10000, page_limit=500, headers=None):
89 """ Return all of the Items and Collections for this search """
---> 90 found = self.found(headers=headers)
91 limit = self.limit or limit
92 if found > limit:
/opt/conda/lib/python3.8/site-packages/satsearch/search.py in found(self, headers)
60 url = urljoin(self.url, 'search')
61
---> 62 results = self.query(url=url, headers=headers, **kwargs)
63 # TODO - check for status_code
64 logger.debug(f"Found: {json.dumps(results)}")
TypeError: query() got multiple values for keyword argument 'headers'
Trying header instead of headers I get: SatSearchError: {"code":401,"description":"You are not authorized - please provide header [Authorization: Bearer <accessToken>] with your request."}
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to parse an oauth token to satsearch query with custom headers but am getting an error.
Following the sentinel-hub docs to get my token: https://docs.sentinel-hub.com/api/latest/api/overview/authentication/#python
Traceback:
Trying
header
instead ofheaders
I get:SatSearchError: {"code":401,"description":"You are not authorized - please provide header [Authorization: Bearer <accessToken>] with your request."}
The text was updated successfully, but these errors were encountered: