spring-guides / gs-consuming-rest

Consuming a RESTful Web Service :: Learn how to retrieve web page data with Spring's RestTemplate.
https://spring.io/guides/gs/consuming-rest/
Apache License 2.0
195 stars 287 forks source link

error 403 forbidden #9

Closed armory09 closed 9 years ago

armory09 commented 9 years ago

when i try to build the sample app with gradle i get an error 403 forbidden

here is the stacktrace

14:48:40.048 [main] DEBUG o.s.web.client.RestTemplate - Created GET request for "http://graph.facebook.com/pivotalsoftware" 14:48:40.080 [main] DEBUG o.s.web.client.RestTemplate - Setting request Accept header to [application/json, application/*+json] 14:48:40.547 [main] DEBUG o.s.web.client.RestTemplate - GET request for "http://graph.facebook.com/pivotalsoftware" resulted in 403 (Forbidden); invoking error handler Exception in thread "main" org.springframework.web.client.HttpClientErrorException: 403 Forbidden at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:614) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:570) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:530) at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:237) at hello.Application.main(Application.java:13) :run FAILED

i hope you can help me

dsyer commented 9 years ago

You probably exceeded a rate limit or something. Try again in an hour or two.

armory09 commented 9 years ago

i try it again after 5 hrs still failed with the same error mention above

armory09 commented 9 years ago

it did work when i use the sample gs-rest-service and consuming it to gs-consuming-rest

Thank you very much for this