Missing RapidAPI application key (not missing)

那年仲夏 提交于 2021-02-11 17:40:40

问题


I am using rapidAPI. When I POST (Postman) I get the message:

{
    "message": "Missing RapidAPI application key. Go to https://docs.rapidapi.com/docs/keys to learn how to get your API application key."
}

The Problem is, that I have an RapidAPI aplication-key already in the POST

https://meetupdimashirokovv1.p.rapidapi.com/getEvents?x-rapidapi-host=XXXXXXXXXXXXXXXXXXXX&x-rapidapi-key=XXXXXXXXXXXXXXXXXXXX&content-type=application/x-www-form-urlencoded&accessToken=XXXXXXXXXXXXXXXXXXXX

I have generated and tried out a new RapidAPI application key but it didn't work.


回答1:


That is because the x-RapidAPI-host and x-RapidAPI-key should not be in the HTTP parameter. since parameters specify the variable parts of your resources.

I also got this problem when I add the x-RapidAPI-host and x-RapidAPI-key in the params instead of in the headers.



来源:https://stackoverflow.com/questions/60755748/missing-rapidapi-application-key-not-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!