'oc adm' commands fail with "invalid character 'T' looking for beginning of value"

Solution Unverified - Updated -

Issue

  • Running oc adm prune, oc adm migrate storage, or similar command yields the following error:
invalid character 'T' looking for beginning of value
  • Verbose output may look like this:
request.go:991] Response Body: This request caused apisever to panic. Look in log for details.
helpers.go:119] error: couldn't get version/kind; json parse error: invalid character 'T' looking for beginning of value

Environment

  • Red Hat OpenShift Container Platform
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content