FAQ: Hello Spring - Making GET Requests with a Web Browser

This community-built FAQ covers the “Making GET Requests with a Web Browser” exercise from the lesson “Hello Spring”.

Paths and Courses
This exercise can be found in the following Codecademy content:

(Beta) Create REST APIs with Spring and Java

FAQs on the exercise Making GET Requests with a Web Browser

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!
You can also find further discussion and get answers to your questions over in Language Help.

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head to Language Help and Tips and Resources. If you are wanting feedback or inspiration for a project, check out Projects.

Looking for motivation to keep learning? Join our wider discussions in Community

Learn more about how to use this guide.

Found a bug? Report it online, or post in Bug Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I am having a hard time getting started with the very first exercise here. No matter what I try when I try to run the http://localhost:4001/restaurants in the browser nothing happens or I keep getting the same Whitelabel Error Page? Of course this exercise was just a simple copy and paste of code so I can’t imagine what I am doing wrong??

2 Likes

I am also running to the same issue.

I’m also facing the same issue

I have the same problem right now :frowning:

Hi all, I don’t know if anyone is able to go to the next part of the lesson. I was able to move forward by clicking on “view solution”(click the run button a few times to populate the , then copy and paste the code from solution with the code already presented in the lesson, and selected “run”. Then I copied and paste the restaurant link to the web address. Finally check mark appear and “Next” button highlighted to move on to the next lesson. Please share if you did something different that allowed you to move to the next lesson.

2 Likes

Thank you that also worked for me! I had not been able to figure out a way to “trick” this step to pass and I have been trying everything. Thank you for sharing what you did!

Thank you!
Yes, “Replace with Solution” button unlocks Next

Thanks, it worked for me.

Thansk for your tip. I find it surprising that Codecademy doesn’t fix this?? I mean, I’m paying for this content and it’s been broken for 1 year ? That doesn’t look good guys. I would at least appreciate an answer from the dev team saying that / whether they are looking into it ?

1 Like

Why does Spring CRUDRepository use Iterable instead of List? I do understand that Iterable is lazy evaluation and List is not => Only the elements we want are pulled in.
However:

  1. What does this mean when returning across HTTP? The whole thing is fetched anyway, right?
  2. What is the underlying data structure that facilitates only being able to access one element of Iterable at a time?
  3. What is the significance of only being able to access one element at a time? Supposedly, that is safer; how is that safer?

It is now August 2024 and they still have not fixed this issue. I do also run into the very same Whitelabel Error Page after copy pasting the code into the editor.

1 Like