Unable to create namespace for my organization

I’m following https://circleci.com/docs/2.0/creating-orbs/ to register a namespace for my organization, but I always get an error when I run the below:

circleci namespace create {ns} github {org}

Results in:

Error: Unable to find organization {org} of vcs-type GITHUB: Cannot query field organization' on type QueryRoot’.: the organization ‘{org}’ under ‘GITHUB’ VCS-type does not exist. Did you misspell the organization or VCS?

I’m the owner of this organization on Github, and everything works correctly i.e. organization is listed on github, api token is ok, I’ve checked everything a dozen times.

Could this be related to a graphQL api issue?

Thanks for your help!

1 Like

I am having the same issue.

This is in fact a bug on our end, thanks for catching that! Our Engineers are currently working on a fix, we will update this thread once it has been fixed.

3 Likes

I am also having this issue. I’ve enabled Debug on my CLI:

$ circleci namespace create [my-ns] github [my-org] --debug --no-prompt
>> variables: map[organizationName:my-org organizationVcs:GITHUB]
>> query: query($organizationName: String!, $organizationVcs: VCSType!) {
				organization(
					name: $organizationName
					vcsType: $organizationVcs
				) {
					id
				}
			}
<< request id: 9c738c82-2908-4e6f-aac2-3e700fa2187e
<< result status: 200 OK
<< {"errors":[{"message":"Exception applying arguments to field `organization': Not all non-nullable arguments have supplied values.","locations":[{"line":2,"column":5}],"extensions":{"field":"organization","missing-arguments":["id"]}}]}
Error: Unable to find organization [my-org] of vcs-type GITHUB: Exception applying arguments to field `organization': Not all non-nullable arguments have supplied values.: the organization '[my-org]' under 'GITHUB' VCS-type does not exist. Did you misspell the organization or VCS?

Seems like the organization() Query field requires id to be provided as input…

This is a significant hold up to our project as we need to use this feature so we may publish a forked orb to get around a build timeout problem. Is there any news on this issue? Thanks.