{"action":"closed","issue":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/4822","repository_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/4822/labels{/name}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/4822/comments","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/4822/events","html_url":"https://github.com/MinecraftForge/MinecraftForge/issues/4822","id":308754267,"number":4822,"title":"MinecraftForge update checker does not consider HTTP redirects.","user":{"login":"rallias","id":1843506,"avatar_url":"https://avatars3.githubusercontent.com/u/1843506?v=4","gravatar_id":"","url":"https://api.github.com/users/rallias","html_url":"https://github.com/rallias","followers_url":"https://api.github.com/users/rallias/followers","following_url":"https://api.github.com/users/rallias/following{/other_user}","gists_url":"https://api.github.com/users/rallias/gists{/gist_id}","starred_url":"https://api.github.com/users/rallias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallias/subscriptions","organizations_url":"https://api.github.com/users/rallias/orgs","repos_url":"https://api.github.com/users/rallias/repos","events_url":"https://api.github.com/users/rallias/events{/privacy}","received_events_url":"https://api.github.com/users/rallias/received_events","type":"User","site_admin":false},"labels":[{"id":305387937,"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/labels/Bug","name":"Bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-26T22:14:17Z","updated_at":"2018-05-13T18:39:14Z","closed_at":"2018-05-13T18:39:14Z","author_association":"NONE","body":"```\r\n[16:35:40] [Forge Version Check/DEBUG] [forge.VersionCheck]: [mousetweaks] Received version check data:\r\n<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>nginx/1.6.2</center>\r\n</body>\r\n</html>\r\n\r\n[16:35:40] [Forge Version Check/DEBUG] [forge.VersionCheck]: Failed to process update information\r\ncom.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $\r\n\tat com.google.gson.Gson.fromJson(Gson.java:899) ~[Gson.class:?]\r\n\tat com.google.gson.Gson.fromJson(Gson.java:852) ~[Gson.class:?]\r\n\tat com.google.gson.Gson.fromJson(Gson.java:801) ~[Gson.class:?]\r\n\tat com.google.gson.Gson.fromJson(Gson.java:773) ~[Gson.class:?]\r\n\tat net.minecraftforge.common.ForgeVersion$1.process(ForgeVersion.java:223) [ForgeVersion$1.class:?]\r\n\tat net.minecraftforge.common.ForgeVersion$1.run(ForgeVersion.java:198) [ForgeVersion$1.class:?]\r\nCaused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $\r\n\tat com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385) ~[JsonReader.class:?]\r\n\tat com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:183) ~[MapTypeAdapterFactory$Adapter.class:?]\r\n\tat com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145) ~[MapTypeAdapterFactory$Adapter.class:?]\r\n\tat com.google.gson.Gson.fromJson(Gson.java:887) ~[Gson.class:?]\r\n\t... 5 more\r\n```\r\n\r\nThis is indicative that the remote server sent a 301 Moved Permanently, which, per the [relevant RFC](https://tools.ietf.org/html/rfc7231#section-6.4):\r\n\r\n>    The 3xx (Redirection) class of status code indicates that further\r\n>    action needs to be taken by the user agent in order to fulfill the\r\n>    request.  If a Location header field (Section 7.1.2) is provided, the\r\n>    user agent MAY automatically redirect its request to the URI\r\n>    referenced by the Location field value, even if the specific status\r\n>    code is not understood.  Automatic redirection needs to done with\r\n>    care for methods not known to be safe, as defined in Section 4.2.1,\r\n>    since the user might not wish to redirect an unsafe request."}}
{"actor":{"display_login":"LexManos"}}