ViceRabbit / Vice-Modpack_Manager

vice's modpack manager is an application that installs our beloved modpack Minecraft: Isha Reforged - currently written in Python!
0 stars 0 forks source link

ConnectionError: Max Exceeded (establish failed) #1

Open ViceRabbit opened 2 years ago

ViceRabbit commented 2 years ago

Reported by yuuki -

image

ViceRabbit commented 2 years ago

might be a "your internet lol" problem but will push an update with a new timeout set.

ViceRabbit commented 2 years ago

Issue still persists, I doubt this is an "your internet lol" thing, but might able to make another exception with requests.exceptions.ConnectionError!

ViceRabbit commented 2 years ago

Trial and error at this point, trying this -


 while True:
    worked = False
    try:
      cf_api = session.get('https://api.curseforge.com/v1/mods/' + project_id, headers=headers)
      worked = True
    except requests.exceptions.ConnectionError:
      print("Wowzers, your internet is so trash! At attempt to retrieve " + name + ", sleeping for 5 seconds and " \
                                                                                 "retrying. . ")
      sleep(5)
    if worked == True:
      break ```
ViceRabbit commented 2 years ago

Seemingly works? Will have to run another test but will close this as completed within next update release.