Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 1

Getting "Resource not accessible by integration" errors on some fields of GraphQL query

Hello I'm experiencing with a GraphQL query where I pass a user ID and attempt to fetch its repositories and pull requests. I've experimented on the Explorer using the exact same query, and it worked with no problems. I'm using an access token granted via installing a GitHub App I'm experimenting with. The error I'm getting is the following (parsed JSON from Elixir):


"errors" => [
%{
"extensions" => %{"saml_failure" => false},
"locations" => [%{"column" => 1, "line" => 75}],
"message" => "Resource not accessible by integration",
"path" => ["user", "pullRequests", "nodes", 0],
"type" => "FORBIDDEN"
},
%{
"extensions" => %{"saml_failure" => false},
"locations" => [%{"column" => 1, "line" => 75}],
"message" => "Resource not accessible by integration",
"path" => ["user", "pullRequests", "nodes", 1],
"type" => "FORBIDDEN"
},
%{
"extensions" => %{"saml_failure" => false},
"locations" => [%{"column" => 1, "line" => 14}],
"message" => "Resource not accessible by integration",
"path" => ["user", "repositories", "nodes", 0, "defaultBranchRef"],
"type" => "FORBIDDEN"
},
%{
"extensions" => %{"saml_failure" => false},
"locations" => [%{"column" => 1, "line" => 14}],
"message" => "Resource not accessible by integration",
"path" => ["user", "repositories", "nodes", 1, "defaultBranchRef"],
"type" => "FORBIDDEN"
}
]

it seems it doesn't allow me (or the integration via the access token received upon installation) to access the "defaultBranchRef" field on repositories and the complete pull request nodes. This doesn't happen on the Explorer and I've searched everywhere to try to understand why it happens on this particular query. I don't think this is a problem with scopes as I don't seem any scope related to this.

Any tips?