diff --git a/cads_mars_server/client.py b/cads_mars_server/client.py index 530e95c..a7829c3 100644 --- a/cads_mars_server/client.py +++ b/cads_mars_server/client.py @@ -240,7 +240,7 @@ def __init__(self, urls, retries=3, delay=10, timeout=60, log=LOG): def execute(self, request, environ, target): random.shuffle(self.urls) saved = setproctitle.getproctitle() - request_id = request.get("request_id", "unknown") + request_id = environ.get("request_id", "unknown") try: for url in self.urls: