Skip to content

ServiceX fails to report science image missing under certain circumstances #540

@gordonwatts

Description

@gordonwatts

Describe the bug

This crash when running:

servicex.utils.ServiceXException: (ServiceXException(...), 'ServiceX rejected the transformation request: (400){"message": "Failed to submit transform request: Expecting value: line 1 column 1 (char 0)"}\n')

Can with some deeper debugging be tracked to:

Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/site-packages/requests/models.py\", line 971, in json\n    return complexjson.loads(self.text, **kwargs)\n  File \"/usr/local/lib/python3.10/json/__init__.py\", line 346, in loads\n    return _default_decoder.decode(s)\n  File \"/usr/local/lib/python3.10/json/decoder.py\", line 337, in decode\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n  File \"/usr/local/lib/python3.10/json/decoder.py\", line 355, in raw_decode\n    raise JSONDecodeError(\"Expecting value\", s, err.value) from None\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/home/servicex/servicex/resources/transformation/submit.py\", line 153, in post\n    if not self.docker_repo_adapter.check_image_exists(request_rec.image):\n  File \"/home/servicex/servicex/docker_repo_adapter.py\", line 56, in check_image_exists\n    f\"last updated {r.json()['last_updated']}\")\n  File \"/usr/local/lib/python3.10/site-packages/requests/models.py\", line 975, in json\n    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\nrequests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n",

If you look at that bug you'll see it is in the middle of the check of the docker science image existence up on the hub.

To Reproduce
Steps to reproduce the behavior:

  1. Specify a docker science image with two namespaces: sslhep/sslhep/servicex_func_adl_xaod_transformer:v1.1.4
  2. Run the transform.

Expected behavior
A clear message declaring the image could not be found. The error should include the image that it was trying to look up so the user can try to track this back to something they did (or how SX was misconfigured).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions