java.io.IOException

Server returned HTTP response code: 503 for URL: http://169.254.169.254/latest/meta-data/iam/security-credentials/

Samebug tips1

Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web12543

  • Server returned HTTP response code: 503 for URL: http://169.254.169.254/latest/meta-data/iam/security-credentials/
  • via Stack Overflow by Jake
    , 1 year ago
    Server returned HTTP response code: 503 for URL: http://kissmanga.com/
  • Server returned HTTP response code: 503 for URL:
  • Stack trace

    • java.io.IOException: Server returned HTTP response code: 503 for URL: http://169.254.169.254/latest/meta-data/iam/security-credentials/ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1677) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1673) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1246) at com.amazonaws.internal.EC2MetadataClient.readResponse(EC2MetadataClient.java:113) at com.amazonaws.internal.EC2MetadataClient.readResource(EC2MetadataClient.java:92) at com.amazonaws.internal.EC2MetadataClient.getDefaultCredentials(EC2MetadataClient.java:55) at com.amazonaws.auth.InstanceProfileCredentialsProvider.loadCredentials(InstanceProfileCredentialsProvider.java:186) Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: http://169.254.169.254/latest/meta-data/iam/security-credentials/ at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1628) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) at com.amazonaws.internal.EC2MetadataClient.readResponse(EC2MetadataClient.java:110)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    58 more bugmates