Closed mohan3d closed 1 year ago
Same here - http as well as https is not working anymore.
Now it's live. I had the same problem. https://quoters.apps.pcfone.io/api/random
API is still down
https://quoters.apps.pcfone.io/api/random times out in browser. Renders this demo useless unfortunately.
As a temporary workaround, I am proxying a single quote response via githack.
@ayan-b , could you also post the usage code snippet?
Replace line 30 link with this link: https://gistcdn.githack.com/ayan-b/ff0441b5a8d6c489b58659ffb849aff4/raw/e1c5ca10f7bea57edd793c4189ea8339de534b45/response.json
Essentially, replace this:
By:
public CommandLineRunner run(RestTemplate restTemplate) throws Exception {
return args -> {
Quote quote = restTemplate.getForObject(
"https://gistcdn.githack.com/ayan-b/ff0441b5a8d6c489b58659ffb849aff4/raw/e1c5ca10f7bea57edd793c4189ea8339de534b45/response.json", Quote.class);
log.info(quote.toString());
};
}
Still down, the guide needs to be updated.
Looks like that endpoint is still down. Was using this to help onboard someone, but came up with the workaround to have them modify their code and point their endpoint at the service they already built in https://spring.io/guides/gs/rest-service/
Seemed like a fun way to combine two projects :man_shrugging: :slightly_smiling_face:
It's been an year and half that "Quoters" is down, so why keep the guide "Consuming Rest Application" online? Just take it down... It is frustrating finishing a step by step and not being able to test it. Just take it down....
this https://gistcdn.githack.com/ayan-b/ff0441b5a8d6c489b58659ffb849aff4/raw/e1c5ca10f7bea57edd793c4189ea8339de534b45/response.json works for me but dose not print the Quotes randomely
Fixed by describing how to run the quoters application locally and connect to it on localhost.
Tried to run the example but not working just realized gturnquist-quoters is down, not sure if there is a mirror for this API or hosted somewhere else to update your example.
Caused by: org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: [404 Not Found: Requested route ('gturnquist-quoters.cfapps.io') does not exist