Getting “Net::HTTPError: Forbidden (403)”

老子叫甜甜 提交于 2019-12-13 06:28:53

问题


While syncing contacts (fetching contacts from Google or updating a contact from Google), I am getting Net::HTTPError: Forbidden (403).

Would like to know in which cases this exception can arise. Any url that explains this error would help us to debug this issue and analyze different scenarios in which this error can be raised.

Overview of our application's google integration:

  1. Our application is built on Ruby on Rails (3.2.18).
  2. We are using google-contacts gem (https://github.com/varunlalan/google-contacts) for syncing contacts.
  3. We authenticate user using omniauth-google-oauth2 gem (https://github.com/zquestz/omniauth-google-oauth2).
  4. OAuth 2 scopes include - userinfo.email, userinfo.profile, https://www.google.com/m8/feeds/

Any help or inputs would be highly appreciated.

Thanks.

来源:https://stackoverflow.com/questions/25761025/getting-nethttperror-forbidden-403

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