Error : resolving updateGQLSchema failed because Requested predicate is not being served by any tablet (Locations: [{Line: 3, Column: 4}])


Report a Dgraph Bug

When trying to create a GraphQL schema I am getting this error:
{
“errors”: [
{
“message”: “resolving updateGQLSchema failed because Requested predicate is not being served by any tablet (Locations: [{Line: 3, Column: 4}])”,
“extensions”: {
“code”: “Error”
}
}
]
}

What version of Dgraph are you using?

Dgraph Version
$ dgraph version
 
Dgraph version   : v21.12.0
Dgraph codename  : zion
Dgraph SHA-256   : 078c75df9fa1057447c8c8afc10ea57cb0a29dfb22f9e61d8c334882b4b4eb37
Commit SHA-1     : d62ed5f15
Commit timestamp : 2021-12-02 21:20:09 +0530
Branch           : HEAD
Go version       : go1.17.3
jemalloc enabled : true

For Dgraph official documentation, visit https://dgraph.io/docs.
For discussions about Dgraph     , visit http://discuss.dgraph.io.
For fully-managed Dgraph Cloud   , visit https://dgraph.io/cloud.

Licensed variously under the Apache Public License 2.0 and Dgraph Community License.
Copyright 2015-2021 Dgraph Labs, Inc.

Have you tried reproducing the issue with the latest release?

What is the hardware spec (RAM, OS)?

Steps to reproduce the issue (command/config used to run Dgraph).

Expected behaviour and actual result.


Experience Report for Feature Request

Note: Feature requests are judged based on user experience and modeled on Go Experience Reports. These reports should focus on the problems: they should not focus on and need not propose solutions.

What you wanted to do

What you actually did

Why that wasn’t great, with examples

Any external references to support your case

Start from scratch first. if the problem persists, please share your Schema.

Hello, you can upload a schema.graphql file via insomnia.

here is a example of schema.graphql

type City {
  id: ID!
  name: String!
  state: String!
  country: String!
}

Also make sure contenttype set to application/json or application/graphql

1 Like