gs-consuming-rest icon indicating copy to clipboard operation
gs-consuming-rest copied to clipboard

quoters is down

Open mohan3d opened this issue 3 years ago • 12 comments

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

mohan3d avatar Feb 01 '21 05:02 mohan3d

Same here - http as well as https is not working anymore.

ottlinger avatar Feb 19 '21 09:02 ottlinger

Now it's live. I had the same problem. https://quoters.apps.pcfone.io/api/random

al3xt96 avatar Mar 18 '21 13:03 al3xt96

API is still down

cmacho avatar Jan 31 '22 09:01 cmacho

https://quoters.apps.pcfone.io/api/random times out in browser. Renders this demo useless unfortunately.

ArnaudKleinveld avatar Mar 14 '22 05:03 ArnaudKleinveld

As a temporary workaround, I am proxying a single quote response via githack.

ayan-b avatar Mar 25 '22 15:03 ayan-b

@ayan-b , could you also post the usage code snippet?

srinivasbellarichenna avatar Mar 25 '22 21:03 srinivasbellarichenna

Replace line 30 link with this link: https://gistcdn.githack.com/ayan-b/ff0441b5a8d6c489b58659ffb849aff4/raw/e1c5ca10f7bea57edd793c4189ea8339de534b45/response.json

Essentially, replace this:

https://github.com/spring-guides/gs-consuming-rest/blob/2b4168375caa4b2ff6227b332dace8e13ab7cfd1/complete/src/main/java/com/example/consumingrest/ConsumingRestApplication.java#L27-L33

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());
		};
	}

ayan-b avatar Mar 26 '22 13:03 ayan-b

Still down, the guide needs to be updated.

Deewens avatar Mar 31 '22 08:03 Deewens

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:

jmcinerney avatar Jun 10 '22 15:06 jmcinerney

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....

shyllenno avatar Sep 14 '22 20:09 shyllenno

this https://gistcdn.githack.com/ayan-b/ff0441b5a8d6c489b58659ffb849aff4/raw/e1c5ca10f7bea57edd793c4189ea8339de534b45/response.json works for me but dose not print the Quotes randomely

HansMbua avatar Sep 17 '22 07:09 HansMbua

Yes, it is a static page that shows only one quote, source here.

ayan-b avatar Sep 21 '22 12:09 ayan-b

Fixed by describing how to run the quoters application locally and connect to it on localhost.

Buzzardo avatar Nov 17 '22 19:11 Buzzardo