有办法解决这个问题吗?

huangapple go评论75阅读模式
英文:

Is there a way to solve this?

问题

我不知道为什么我的捆绑命令(eas build --platform android)一直返回这个错误:CombinedError: [GraphQL] 实体未被授权:AccountEntity[bf4d40b0-5121-4c66-96ed-6be99586c703](查看者 = RegularUserViewerContext[2200e4b1-4483-428d-87f3-0643e995c424],操作 = 读取,规则索引 = -1)

英文:

I do not know why my bundling command (eas build --platform android) keeps returning this error: CombinedError: [GraphQL] Entity not authorized: AccountEntity[bf4d40b0-5121-4c66-96ed-6be99586c703] (viewer = RegularUserViewerContext[2200e4b1-4483-428d-87f3-0643e995c424], action = READ,
ruleIndex = -1)

I do not know why my bundling command (eas build --platform android) keeps returning this error: CombinedError: [GraphQL] Entity not authorized: AccountEntity[bf4d40b0-5121-4c66-96ed-6be99586c703] (viewer = RegularUserViewerContext[2200e4b1-4483-428d-87f3-0643e995c424], action = READ,
ruleIndex = -1)

答案1

得分: 8

我遇到了同样的问题。问题出在我克隆了一个朋友的项目,他曾尝试构建过,所以构建命令将他的构建配置添加到了app.json中。

其中一个值位于文件底部的projectId

这个projectId由于不属于我的Expo账户而未被授权。为了解决这个问题,我只需删除app.json中的extra属性,然后重新构建项目。这次它将生成一个属于我的账户的projectId

英文:

I had the same problem. What happened was that I cloned a project from a friend who had tried to build, so the build command added his build config to the app.json

One of the values was the projectId at the bottom of the file.

It had an Entity not authorized because that projectId didn't belong to my Expo account.

To fix it, I just deleted the extra property in the app.json and built the project again. This time it would generate a projectId that belongs to my account.

答案2

得分: 0

根据此链接,您的projectId可能出现了问题。
https://github.com/expo/eas-cli/issues/1324

请确保在app.json文件中projectId是正确的。

英文:

As per this link, your projectId may be messed up.
https://github.com/expo/eas-cli/issues/1324

Make sure projectId is correct in app.json file

huangapple
  • 本文由 发表于 2023年2月8日 13:43:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/75381759.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定