Red Hat Dev Spaces - Unable to import workspace from Git repo

Solution In Progress - Updated -


When creating a workspace from a devfile in gitrepo by importing from the git (bitbucket), getting below error:

Failed to resolve a devfile. Failed to request factory resolver: Error occurred during creation a workspace from devfile located at<folder_name>/<test_file>.git. 
Cause: Neither of apiVersion or schemaVersion found. This is not a valid devfile.


  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Bitbucket

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