我有麻烦了
"message": "Not Authorized to access createMerchant on type Merchant"我将在AWS AppSync请求选项卡上执行此操作。
我可以列出(这个也是),创建其他类型,但不是这个类型。
input CreateMerchantInput {
id: ID
pass: AWSURL
validated: Boolean!
_version: Int
}type MerchantType @aws_iam
@aws_cognito_user_pools {
id: ID!
role: String!
merchantSpotMerchantTypes(
filter: ModelMerchantSpotMerchantTypeFilterInput,
sortDirection: ModelSortDirection,
limit: Int,
nextToken: String
): ModelMerchantSpotMerchantTypeConnection
createdAt: AWSDateTime!
updatedAt: AWSDateTime!
_version: Int!
_deleted: Boolean
_lastChangedAt: AWSTimestamp!
}不知道怎么解决这个问题。权利对我来说似乎没问题,我不知道该去哪里找别的地方。
发布于 2022-10-25 23:36:02
解决方案可能取决于您如何对呼叫进行身份验证--您使用的是科尼托吗?我是吗?
“权利似乎没问题”..。嗯,在你看来,它们可能还可以,但仍然不正确:)如果是我的话,那么你可能应该发布你的政策。
但是你似乎没有任何明确的@auth指令,所以--在没有其他信息的情况下--我猜你可能在使用科尼图,在你的放大项目中可能有一些影响createMerchant的自定义VTL解析器 (可能是偶然的)。但是,如果你的项目没有更多的细节,就很难确定。
https://stackoverflow.com/questions/74124585
复制相似问题