Thanks for this advice. When I try adding this to the request, it fails about half the time with the error shown below. I'm not sure what could be causing this - are there any requirements for the random string?
2021-05-15 07:42:33,451 INFO Welcome to the CDS
2021-05-15 07:42:33,452 INFO Sending request to https://cds.climate.copernicus.eu/api/v2/resources/reanalysis-era5-single-levels
2021-05-15 07:42:33,591 INFO Request is queued
2021-05-15 07:42:34,989 INFO Request is failed
2021-05-15 07:42:34,990 ERROR Message: the request you have submitted is not valid
2021-05-15 07:42:34,995 ERROR Reason: undefined value : c for parameter NUMBER - Values are : - No request
2021-05-15 07:42:34,997 ERROR Traceback (most recent call last):
2021-05-15 07:42:35,000 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/handler.py", line 55, in handle_request
2021-05-15 07:42:35,003 ERROR result = cached(context.method, proc, context, context.args, context.kwargs)
2021-05-15 07:42:35,006 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/caching.py", line 108, in cached
2021-05-15 07:42:35,011 ERROR result = proc(context, *context.args, **context.kwargs)
2021-05-15 07:42:35,013 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 118, in __call__
2021-05-15 07:42:35,016 ERROR return p(*args, **kwargs)
2021-05-15 07:42:35,019 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 59, in __call__
2021-05-15 07:42:35,022 ERROR return self.proc(context, *args, **kwargs)
2021-05-15 07:42:35,025 ERROR File "/home/cds/cdsservices/services/mars.py", line 347, in internal
2021-05-15 07:42:35,027 ERROR return mars(context, request, **kwargs)
2021-05-15 07:42:35,030 ERROR File "/home/cds/cdsservices/services/mars.py", line 48, in mars
2021-05-15 07:42:35,032 ERROR execute_mars(context, requests)
2021-05-15 07:42:35,035 ERROR File "/home/cds/cdsservices/services/mars.py", line 192, in execute_mars
2021-05-15 07:42:35,037 ERROR context.run_command("/usr/local/bin/mars", tmp, exception=MarsException)
2021-05-15 07:42:35,039 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/context.py", line 209, in run_command
2021-05-15 07:42:35,042 ERROR raise exception(call, proc.returncode, output)
2021-05-15 07:42:35,044 ERROR home.cds.cdsservices.services.mars.py.MarsException: undefined value : c for parameter NUMBER - Values are : - No request