简体   繁体   中英

Invalid API Request for Apigee API

I have an API which requires a API key to get through. I have set the same verification policy to my set of API's. However, some of my API's work and the other do not work giving me the below error. What might be the cause.

{
    fault: {
        faultstring: "Invalid ApiKey for given resource"
        detail: {
            errorcode: "oauth.v2.InvalidApiKeyForGivenResource"
        }
    }
}

One of the possible reasons for the error "Invalid ApiKey for given resource" is that the Product associated with the API proxy may not have the proper "Resource Path.

The below apigee community link explains this issue in more detail and what should the Resource Path be set as to make different paths in your APIs to work: https://community.apigee.com/questions/965/need-to-know-about-in-resource-path.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM