Module 2 Assignment: Identifying Vulnerable Communities API connection issue

Hello,

I’m writing to report a persistent issue I’m encountering in the lab for Module 2: Identifying Vulnerable Communities using the U.S. Census API.

Data Analytics Foundations > Data I/O and Preprocessing with Python and SQL > Module 2 > Grading Lab

Specifically, in Exercise 1a, I am unable to connect to the provided API endpoint. I’ve used the correct code as outlined in the instructions:

my code:
{mentor edit: code removed

the API request consistently fails. I am receiving a SSLEOFError which indicates a network-level problem, specifically an “Unexpected EOF while reading.” This suggests an issue with the SSL handshake and not with the code. I have also seen the API return a 404 Not Found error, which further suggests that the endpoint itself is unavailable.

Could you please investigate the status of the API endpoint at https://2eraiuh.dl.ai.link/api/UScensus? This seems to be a server-side or environment-specific problem preventing me from completing the assignment.

Thank you for your assistance.

Best regards,
Igor

Just an update: I was unable to attach the link from the lab because the system here blocks it. The URL is “``https://2eraiuh.dl.ai.link/api/UScensus"

Hi @igor.gojdic!

I just tested this lab, and it seems the error is on the URL your are using for the API. Note that there’s no dot between dl and `ai`.

So you can:

  1. Change the URL to:

    BASE_URL = "https://2eraiuh.dlai.link/api/UScensus"
    
    
  2. Make sure they use straight quotes " " in Python code.

Please keep in mind that sharing code is against the “Code of Conduct” in this forum. It’s ok for now, but for the future, keep that in mind :wink:

Good luck!

thank you for your quick response, it worked. really thank you and apologies for sharing the code. I wanted to be as specific as I could in order to navigate you and explain the issue. thank you.

1 Like

Great it worked, Igor! :smiling_face: