Git Product home page Git Product logo

launch-dashboard-api's Issues

Is the videostreaming scraper still being used?

I have tried to connect to the websocket, but the server simply disconnects me. Furthermore, I can't seem to find any recent launch telemetry.

Are you still running the videostream/scraper software?

Server down

Hi Shahar. The server at api.launchdashboard.space has been down for the last few days. I was hoping to take a look at some more recent launch data.

Please contact us

Dear Sharhar603,

I have been looking closely at your live telemetry feed and the Telemetry API/WebSockets and I am very interested in trying this capability into our core software at Saber Astronautics.

Is there a good email address I can get in touch with you at? Alternatively, feel free to send me an email to: [email protected]

Regards,

WebSocket - connection closed before receiving a handshake response

I was trying to connect to the WebSocket server (wss://api.launchdashboard.space/), but looks like there is some problem. I ran the sample code in Node.js with success, but it's the only one which works - I tried a few libraries in C#, online WebSocket clients and they can't connect.

You can check it here for example: http://demos.kaazing.com/echo/index.html. When trying to connect, the log shows these messages:

CONNECT: wss://api.launchdashboard.space/
CLOSED: (1006) 

Looking at the developer console in Chrome we get some additional info:

WebSocket connection to 'wss://api.launchdashboard.space/?.kl=Y' failed: Connection closed before receiving a handshake response

I don't know Node.js too well to check code in your backend, but I've searched in Google and looks like it's quite common problem with Socket.io library, especially when someone creates by accident two instances of it on example. Sample links:

GitHub issues -
socketio/socket.io#2045
feathersjs-ecosystem/socketio#84

StackOverflow -
https://stackoverflow.com/questions/26665840/socket-io-failed-connection-closed-before-receiving-a-handshake-response/44196108

Mismatch between documentation and API responses

There is a small mismatch between what the documentation says, and what API returns from the endpoints: "analysed", "events", "raw". We can read that all of them have mission header (with fields: "mission_id", "name", "flight_number", "launch_libray_id") like this:

{
  "mission_id": "amos-17",
  "name": "Amos-17",
  "flight_number": 83,
  "launch_library_id": 1388,
  "events": [
    { "key": "maxq", "time": 66 },
    { "key": "throttle_down_start", "time": 45 }
  ]
}

But looks like API returns data without header, and contains only array with requested data:

[
   { "key":"maxq", "time":66 },
   { "key":"throttle_down_start", "time":45 }
]

The only endpoint which contains mission header is "launches", and here documentation is correct.

Features, Data and Telemetry Suggestions 🚀

If you have suggesions, requests for data you want the API to contain (for example telemetry from a launch provider which isn't covered by the API), this is the place to post them.

Server reponse for Python request

Hi everybody !

I am super excited to use this beautiful tool Launch-Dashboard-API. Personally, I am using only Python script (I know pretty close to 0 in js) so I was wondering if it was possible to do it with request. I have already exchanged data with APIs like the Google Maps API so I know how request work but currently I am having some problems with this API for a few tests.

import requests

url = "https://api.launchdashboard.space/v2/launches/spacex?flight_number=45"

payload={}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Then I get the following error.

---------------------------------------------------------------------------
ConnectionRefusedError                    Traceback (most recent call last)
~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connection.py in _new_conn(self)
    174             conn = connection.create_connection(
--> 175                 (self._dns_host, self.port), self.timeout, **extra_kw
    176             )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options)
     95     if err is not None:
---> 96         raise err
     97 

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options)
     85                 sock.bind(source_address)
---> 86             sock.connect(sa)
     87             return sock

ConnectionRefusedError: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée

During handling of the above exception, another exception occurred:

NewConnectionError                        Traceback (most recent call last)
~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    705                 headers=headers,
--> 706                 chunked=chunked,
    707             )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    381         try:
--> 382             self._validate_conn(conn)
    383         except (SocketTimeout, BaseSSLError) as e:

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in _validate_conn(self, conn)
   1009         if not getattr(conn, "sock", None):  # AppEngine might not have  `.sock`
-> 1010             conn.connect()
   1011 

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connection.py in connect(self)
    357         # Add certificate verification
--> 358         conn = self._new_conn()
    359         hostname = self.host

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connection.py in _new_conn(self)
    186             raise NewConnectionError(
--> 187                 self, "Failed to establish a new connection: %s" % e
    188             )

NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000026642302788>: Failed to establish a new connection: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée

During handling of the above exception, another exception occurred:

MaxRetryError                             Traceback (most recent call last)
~\anaconda3\envs\FalconAI\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
    448                     retries=self.max_retries,
--> 449                     timeout=timeout
    450                 )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    755             retries = retries.increment(
--> 756                 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    757             )

~\anaconda3\envs\FalconAI\lib\site-packages\urllib3\util\retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
    573         if new_retry.is_exhausted():
--> 574             raise MaxRetryError(_pool, url, error or ResponseError(cause))
    575 

MaxRetryError: HTTPSConnectionPool(host='api.launchdashboard.space', port=443): Max retries exceeded with url: /v2/launches/spacex?flight_number=45 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000026642302788>: Failed to establish a new connection: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée'))

During handling of the above exception, another exception occurred:

ConnectionError                           Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_952/2002079659.py in <module>
      6 headers = {}
      7 
----> 8 response = requests.request("GET", url, headers=headers, data=payload)
      9 
     10 print(response.text)

~\anaconda3\envs\FalconAI\lib\site-packages\requests\api.py in request(method, url, **kwargs)
     59     # cases, and look like a memory leak in others.
     60     with sessions.Session() as session:
---> 61         return session.request(method=method, url=url, **kwargs)
     62 
     63 

~\anaconda3\envs\FalconAI\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
    540         }
    541         send_kwargs.update(settings)
--> 542         resp = self.send(prep, **send_kwargs)
    543 
    544         return resp

~\anaconda3\envs\FalconAI\lib\site-packages\requests\sessions.py in send(self, request, **kwargs)
    653 
    654         # Send the request
--> 655         r = adapter.send(request, **kwargs)
    656 
    657         # Total elapsed time of the request (approximately)

~\anaconda3\envs\FalconAI\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
    514                 raise SSLError(e, request=request)
    515 
--> 516             raise ConnectionError(e, request=request)
    517 
    518         except ClosedPoolError as e:

ConnectionError: HTTPSConnectionPool(host='api.launchdashboard.space', port=443): Max retries exceeded with url: /v2/launches/spacex?flight_number=45 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000026642302788>: Failed to establish a new connection: [WinError 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée'))

Sorry it is in french as my jupyter notebook. I was wondering if the server is down or I am doing it all wrong @shahar603 ?
Thx in advance for the help 😀
VA

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.