Giter Club home page Giter Club logo

dsc-http-request-response-lab's People

Contributors

alexgriff avatar bpurdy-ds avatar fpolchow avatar jilliankim avatar lmcm18 avatar loredirick avatar mas16 avatar mike-kane avatar shakeelraja avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dsc-http-request-response-lab's Issues

Overhead Pass Predictions for the International Space Station API no longer available on Open Notify

Link to Canvas

https://learning.flatironschool.com/courses/5315/assignments/176478?module_item_id=388592

Issue Subtype

  • Master branch code
  • Solution branch code
  • Code tests
  • Layout/rendering issue
  • Instructions unclear
  • [X ] Other (explain below)

Describe the Issue

The Lab for HTTP Request/Cycle still references the API Overhead Pass Predictions for the International Space Station but according to the http://open-notify.org website, that API has been removed.

Source

## Level Up (Optional) - Investigating other API endpoints

### Next pass of International space station for a given location

Let's repeat the exercise for another endpoint `iss-pass.json`. This endpoint is used to query the next pass of the space station on a given location.

Concern

The Open Notify website states that the Next Pass api is no longer available. When I am attempting to run through the level up it is returning a 404 error that it cannot be found.

http://open-notify.org/Open-Notify-API/ISS-Pass-Times/

(Optional) Proposed Solution

What OS Are You Using?

  • [X ] OS X
  • Windows
  • WSL
  • Linux
  • IllumiDesk

Any Additional Context?

Open Notify /iss-pass.json removed

Hello,
I was unable to interpret the results of my request when I went to review them on the open notify API. I am attaching a screenshot of the response I got.

Screen Shot 2021-05-25 at 6 35 43 PM

Lab solution doesn't result the same result even with the same code

Link to Canvas

https://learning.flatironschool.com/courses/5874/assignments/217968?module_item_id=507955

Issue Subtype

  • Master branch code
  • [x ] Solution branch code
  • Code tests
  • Layout/rendering issue
  • Instructions unclear
  • Other (explain below)

Describe the Issue

Thought I had the solution to the last problem but it still gave me an error so I looked at the solution.
The solution looked almost the same so I copied it to see if I miss something but gave a similar error.

Source

# Set up the parameters we want to pass to the API.
# This is the latitude and longitude of New York City.
parameters = {"lat": 40.71, "lon": -74}

# Make a get request with the parameters.
response = requests.get("http://api.open-notify.org/iss-pass.json", params=parameters)
print(response.status_code)

# Print the content of the response (the data the server returned)
print(dict(response.headers))
print(response.text)
200
{'Server': 'nginx/1.10.3', 'Date': 'Thu, 31 Mar 2022 18:54:40 GMT', 'Content-Type': 'application/json', 'Content-Length': '519', 'Connection': 'keep-alive', 'Via': '1.1 vegur'}
{
  "message": "success", 
  "request": {
    "altitude": 100, 
    "datetime": 1648752200, 
    "latitude": 40.71, 
    "longitude": -74.0, 
    "passes": 5
  }, 
  "response": [
    {
      "duration": 647, 
      "risetime": 1648755267
    }, 
    {
      "duration": 580, 
      "risetime": 1648761143
    }, 
    {
      "duration": 570, 
      "risetime": 1648767017
    }, 
    {
      "duration": 639, 
      "risetime": 1648772833
    }, 
    {
      "duration": 627, 
      "risetime": 1648778642
    }
  ]
}

Concern

The solution isn't the same and looks like the error message is different from before.

It may just need to be updated but unsure

(Optional) Proposed Solution

What OS Are You Using?

  • OS X
  • [] Windows
  • WSL
  • Linux
  • [x ] IllumiDesk

Any Additional Context?

The error resulted in 404 which the wiki says its not available rather than not found.

iss-pass api has been removed

Link to Canvas

https://learning.flatironschool.com/courses/5329/assignments/187442?module_item_id=417471

Issue Subtype

  • Master branch code
  • Solution branch code
  • Code tests
  • Layout/rendering issue
  • Instructions unclear
  • [X ] Other (explain below)

Describe the Issue

Source

Level Up (Optional) - Investigating other API endpoints
Next pass of International space station for a given location
Let's repeat the exercise for another endpoint iss-pass.json. This endpoint is used to query the next pass of the space station on a given location.

Concern

The iss-pass api has been removed

http://open-notify.org/Open-Notify-API/ISS-Pass-Times/

(Optional) Proposed Solution

What OS Are You Using?

  • OS X
  • [X ] Windows
  • WSL
  • Linux
  • IllumiDesk

Any Additional Context?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.