FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Can't load a map

    Scheduled Pinned Locked Moved I need help
    2 Posts 2 Posters 162 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      N1ghtfall_
      last edited by

      I checked metadata and everything is ok, idk what does that error means.

      Error:
      Map was not loaded. Server returned errors: I/O error on POST request for "https://api.faforever.com/maps/upload": null; nested exception is org.apache.http.client.ClientProtocolException

      File names:
      https://imgur.com/a/yD1EWcK

      scenario.lua:

      version = 3 -- Lua Version. Dont touch this
      ScenarioInfo = {
          name = "XXX Survival nerfed",
          description = "XXX_Survival",
          preview = '',
          map_version = 1,
          type = 'skirmish',
          starts = true,
          size = {512, 512},
          reclaim = {18921, 0},
          map = '/maps/xxx_survival_nerfed.v0001/xxx_survival_nerfed.scmap',
          save = '/maps/xxx_survival_nerfed.v0001/xxx_survival_nerfed_save.lua',
          script = '/maps/xxx_survival_nerfed.v0001/xxx_survival_nerfed_script.lua',
          norushradius = 170,
          Configurations = {
              ['standard'] = {
                  teams = {
                      {
                          name = 'FFA',
                          armies = {'ARMY_1', 'ARMY_2', 'ARMY_3', 'ARMY_4', 'ARMY_5'}
                      },
                  },
                  customprops = {
                      ['ExtraArmies'] = STRING( 'ARMY_SURVIVAL_ALLY ARMY_SURVIVAL_ENEMY' ),
                  },
              },
          },
      }
      

      And if someone will be able to understand, the code in the error window:

      org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://api.faforever.com/maps/upload": null; nested exception is org.apache.http.client.ClientProtocolException
      	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:746)
      	at org.springframework.security.oauth2.client.OAuth2RestTemplate.doExecute(OAuth2RestTemplate.java:132)
      	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:672)
      	at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:447)
      	at com.faforever.client.api.FafApiAccessorImpl.post(FafApiAccessorImpl.java:554)
      	at com.faforever.client.api.FafApiAccessorImpl.uploadMap(FafApiAccessorImpl.java:282)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)
      	at com.sun.proxy.$Proxy69.uploadMap(Unknown Source)
      	at com.faforever.client.map.MapUploadTask.call(MapUploadTask.java:85)
      	at com.faforever.client.map.MapUploadTask.call(MapUploadTask.java:29)
      	at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
      	at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: org.apache.http.client.ClientProtocolException
      	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
      	at org.springframework.http.client.HttpComponentsStreamingClientHttpRequest.executeInternal(HttpComponentsStreamingClientHttpRequest.java:99)
      	at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)
      	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:737)
      	... 19 more
      Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity
      	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:108)
      	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
      	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
      	... 24 more
      Caused by: java.io.IOException: Attempted write to closed stream.
      	at org.apache.http.impl.io.ChunkedOutputStream.write(ChunkedOutputStream.java:151)
      	at org.springframework.http.converter.FormHttpMessageConverter.writeNewLine(FormHttpMessageConverter.java:595)
      	at org.springframework.http.converter.FormHttpMessageConverter.writeParts(FormHttpMessageConverter.java:504)
      	at org.springframework.http.converter.FormHttpMessageConverter.lambda$writeMultipart$3(FormHttpMessageConverter.java:478)
      	at org.springframework.http.client.HttpComponentsStreamingClientHttpRequest$StreamingHttpEntity.writeTo(HttpComponentsStreamingClientHttpRequest.java:152)
      	at org.apache.http.impl.execchain.RequestEntityProxy.writeTo(RequestEntityProxy.java:121)
      	at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156)
      	at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:152)
      	at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
      	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
      	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
      	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
      	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
      	... 26 more
      
      1 Reply Last reply Reply Quote 0
      • S Offline
        Sheikah
        last edited by

        see here https://forum.faforever.com/topic/586/unable-to-upload-any-map-since-today-worked-before

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post