英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论