u3d icon indicating copy to clipboard operation
u3d copied to clipboard

No versions retrieved from Unity pages

Open chazix opened this issue 1 year ago • 0 comments

Issue Checklist

  • [x ] I'm using the latest u3d version
  • [x ] I ran u3d --help
  • [x ] I read the README
  • [x ] I made sure that a similar issue doesn't exit

Issue Description

The urls where we retrieve versions from has changed. fetch_version_paged doesn't return anything anymore, and have to rely on the cache.json file, and modify manually in the interim.

This url also redirects to a relative location, which causes follow_redirects to fail & crash: UNITY_LTSES = 'https://unity3d.com/unity/qa/lts-releases' It redirects here: /releases/editor/archive

Modifying this variable to be: UNITY_LTSES = 'https://unity.com/releases/editor/archive' Fixes the redirect issue, but no versions are determined due to the structure of the page changing based on how 1.3.3 parses for versions.

This is an example of data that is returned in this page: {\"version\":\"6000.0.4f1\",\"releaseDate\":\"2024-05-29T16:49:19.341Z\",\"unityHubDeepLink\":\"unityhub://6000.0.4f1/b5d5d06b038a\",\"stream\":\"TECH\"}

chazix avatar Jun 07 '24 08:06 chazix