Open ashleythomasbarnes opened 3 months ago
I get the following error when running: get_miris_mosaic.py Have you tried to run this lately? -- Ash
~/Downloads/get_miris_mosaic.py in <module> 14 for glon in ProgressBar(range(-25, 26, 2)): 15 ---> 16 response = requests.get(f'http://miris.kasi.re.kr/cgi-bin/mirisobs.cgi?type=coord&coordinates={glon}+0&frame=galactic&filter=PAAL&filter=PAAC') 17 response.raise_for_status() 18 soup = BeautifulSoup(response.text, parser='html.parser') ~/opt/anaconda3/lib/python3.9/site-packages/requests/api.py in get(url, params, **kwargs) 71 """ 72 ---> 73 return request("get", url, params=params, **kwargs) 74 75 ~/opt/anaconda3/lib/python3.9/site-packages/requests/api.py in request(method, url, **kwargs) 57 # cases, and look like a memory leak in others. 58 with sessions.Session() as session: ---> 59 return session.request(method=method, url=url, **kwargs) 60 61 ~/opt/anaconda3/lib/python3.9/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) 585 } 586 send_kwargs.update(settings) --> 587 resp = self.send(prep, **send_kwargs) 588 589 return resp ~/opt/anaconda3/lib/python3.9/site-packages/requests/sessions.py in send(self, request, **kwargs) 699 700 # Send the request --> 701 r = adapter.send(request, **kwargs) 702 703 # Total elapsed time of the request (approximately) ~/opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 563 raise SSLError(e, request=request) 564 --> 565 raise ConnectionError(e, request=request) 566 567 except ClosedPoolError as e: ConnectionError: HTTPConnectionPool(host='miris.kasi.re.kr', port=80): Max retries exceeded with url: /cgi-bin/mirisobs.cgi?type=coord&coordinates=-25+0&frame=galactic&filter=PAAL&filter=PAAC (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe0a941b7f0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
can you access the website directly? it might just be that the service is down
I get the following error when running: get_miris_mosaic.py Have you tried to run this lately? -- Ash