When i try to make a http request it shows up as a connection error whereas before it didn't show up as a connection error

765 views Asked by At
import json
import requests

country = 'GB'
url = ('http://kitkabackend.eastus.cloudapp.azure.com:5010/highscore/crowns/list?country='+country)  
r = requests.get(url)
print(r.text)

The same code was working for me for a while before but now it suddenly gives me an error like before. I've tried adding headers when requesting but that also didn't fix the error.(im a beginner using repl.it)

error shown on console - raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response

0

There are 0 answers