|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + |
| 5 | + <meta charset="utf-8"> |
| 6 | + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | + <meta name="description" content="SoftLayer API Examples, implementations, and release notes."> |
| 9 | + <meta name="author" content="SoftLayer"> |
| 10 | + |
| 11 | + <title>Failed to Exchange Token - https://sldn.softlayer.com/</title> |
| 12 | + <link rel="canonical" href="https://sldn.softlayer.com/article/FailedToExchangeToken/"> |
| 13 | + <link href="https://sldn.softlayer.com/css/main.css" rel="stylesheet"> |
| 14 | + <link href="https://sldn.softlayer.com/css/bootstrap.css" rel="stylesheet"> |
| 15 | + <link href="https://sldn.softlayer.com/css/custom.css" rel="stylesheet"> |
| 16 | + <link href="https://sldn.softlayer.com/css/monokai.css" rel="stylesheet"> |
| 17 | + <link href="https://sldn.softlayer.com/css/highlight/solarized_dark.css" rel="stylesheet"> |
| 18 | + |
| 19 | + |
| 20 | + <script src="https://sldn.softlayer.com/js/highlight.pack.js"></script> |
| 21 | + |
| 22 | + <script>hljs.initHighlightingOnLoad();</script> |
| 23 | + <link rel="shortcut icon" href="https://sldn.softlayer.com/img/favicon.ico" type="image/x-icon" /> |
| 24 | + <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Lato" /> |
| 25 | + |
| 26 | + |
| 27 | + <script src="https://sldn.softlayer.com/js/jquery-3.3.1.min.js"></script> |
| 28 | + <script src="https://sldn.softlayer.com/js/sldn.js"></script> |
| 29 | + |
| 30 | + |
| 31 | + <link href="https://sldn.softlayer.com/fontawesome/css/fontawesome.min.css" rel="stylesheet" type="text/css"> |
| 32 | + <link href="https://sldn.softlayer.com/fontawesome/css/brands.min.css" rel="stylesheet" type="text/css"> |
| 33 | + <link href="https://sldn.softlayer.com/fontawesome/css/solid.min.css" rel="stylesheet" type="text/css"> |
| 34 | + |
| 35 | + <script defer src="https://sldn.softlayer.com/fontawesome/js/solid.min.js"></script> |
| 36 | + <script defer src="https://sldn.softlayer.com/fontawesome/js/brands.min.js"></script> |
| 37 | + <script defer src="https://sldn.softlayer.com/fontawesome/js/fontawesome.min.js"></script> |
| 38 | + |
| 39 | + <script> |
| 40 | + var head = document.getElementsByTagName('head')[0] |
| 41 | + var style = document.createElement('link') |
| 42 | + style.type = 'text/css' |
| 43 | + style.rel = 'stylesheet' |
| 44 | + style.id = "dark-theme" |
| 45 | + if (localStorage.getItem("dark-mode-theme") == "dark") { |
| 46 | + style.href = '/css/dark.css' |
| 47 | + } else { |
| 48 | + style.href = '/css/light.css' |
| 49 | + } |
| 50 | + head.append(style) |
| 51 | + </script> |
| 52 | + |
| 53 | + <script> |
| 54 | + $(document).ready(function() { |
| 55 | + $('table').addClass("table table-hover table-striped") |
| 56 | + setThemeMode(localStorage.getItem("dark-mode-theme") || "dark"); |
| 57 | + }) |
| 58 | + </script> |
| 59 | + |
| 60 | + <script async src="https://www.googletagmanager.com/gtag/js?id=G-9XPZ9ZBSJE"></script> |
| 61 | + <script> |
| 62 | + var doNotTrack = false; |
| 63 | + if ( false ) { |
| 64 | + var dnt = (navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack); |
| 65 | + var doNotTrack = (dnt == "1" || dnt == "yes"); |
| 66 | + } |
| 67 | + if (!doNotTrack) { |
| 68 | + window.dataLayer = window.dataLayer || []; |
| 69 | + function gtag(){dataLayer.push(arguments);} |
| 70 | + gtag('js', new Date()); |
| 71 | + gtag('config', 'G-9XPZ9ZBSJE'); |
| 72 | + } |
| 73 | + </script> |
| 74 | +</head> |
| 75 | + |
| 76 | +<body> |
| 77 | + <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> |
| 78 | + <div class="nav-container"> |
| 79 | + <div class="navbar-header" style="width: 150px"> |
| 80 | + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> |
| 81 | + <span class="sr-only">Toggle Navigation</span> |
| 82 | + <span class="icon-bar"></span> |
| 83 | + <span class="icon-bar"></span> |
| 84 | + <span class="icon-bar"></span> |
| 85 | + </button> |
| 86 | + <a class="navbar-brand" href="https://sldn.softlayer.com/">SoftLayer API</a> |
| 87 | + </div> |
| 88 | + |
| 89 | + <div class="navbar-header" style="width: calc(100% - 350px)"> |
| 90 | + <ul class="nav navbar-nav" style="width: 100%"> |
| 91 | + |
| 92 | + <li><a href="https://sldn.softlayer.com/article/">Articles</a></li> |
| 93 | + |
| 94 | + <li><a href="https://sldn.softlayer.com/reference/softlayerapi">Docs</a></li> |
| 95 | + |
| 96 | + <li><a href="https://sldn.softlayer.com/go/">Go</a></li> |
| 97 | + |
| 98 | + <li><a href="https://sldn.softlayer.com/java/">Java</a></li> |
| 99 | + |
| 100 | + <li><a href="https://sldn.softlayer.com/php/">PHP</a></li> |
| 101 | + |
| 102 | + <li><a href="https://sldn.softlayer.com/python/">Python</a></li> |
| 103 | + |
| 104 | + <li><a href="https://sldn.softlayer.com/rest/">Rest</a></li> |
| 105 | + |
| 106 | + <li><a href="https://sldn.softlayer.com/ruby/">Ruby</a></li> |
| 107 | + |
| 108 | + <li><a href="https://sldn.softlayer.com/tools/">Tools</a></li> |
| 109 | + |
| 110 | + <li class="nav-item"> |
| 111 | + <a id="dark-toggle" class="dark-mode-toggle" aria-label="dark-mode-toggle" style="color: var(--Red); font-size: 20px"> |
| 112 | + <i class="fas fa-sun"></i> |
| 113 | + </a> |
| 114 | + </li> |
| 115 | + </ul> |
| 116 | + </div> |
| 117 | + |
| 118 | + <div id="custom-search-input" class="pull-right" style="width: 200px"> |
| 119 | + <form class="navbar-form" role="search" method="get" action="https://www.bing.com/search"> |
| 120 | + <div class="input-group col-md-12"> |
| 121 | + <input type="text" class="form-control input-md" placeholder="Search" name="q" id="srch-term"> |
| 122 | + <input type="hidden" name="q1" value="site:sldn.softlayer.com" /> |
| 123 | + <div class="input-group-btn"> |
| 124 | + <button class="btn btn-info" type="submit"> |
| 125 | + <i class="glyphicon glyphicon-search"></i> |
| 126 | + </button> |
| 127 | + </div> |
| 128 | + </div> |
| 129 | + </form> |
| 130 | + </div> |
| 131 | + |
| 132 | + </div> |
| 133 | + </nav> |
| 134 | + |
| 135 | +<script type="text/javascript"> |
| 136 | +const darkIconClass = 'fas fa-moon' |
| 137 | +const lightIconClass = 'fas fa-sun' |
| 138 | +var darkCSS = $("#dark-theme"); |
| 139 | +var darkToggleIcon = $("#dark-toggle i"); |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | +function setThemeMode(mode) { |
| 145 | + localStorage.setItem("dark-mode-theme", mode); |
| 146 | + if (mode === "dark") { |
| 147 | + darkToggleIcon.attr('class', darkIconClass) |
| 148 | + } else { |
| 149 | + darkToggleIcon.attr('class', lightIconClass) |
| 150 | + } |
| 151 | +} |
| 152 | + |
| 153 | + |
| 154 | +$("#dark-toggle").click(function () { |
| 155 | + if (darkToggleIcon.attr("class") == lightIconClass) { |
| 156 | + setThemeMode("dark") |
| 157 | + } else if (darkToggleIcon.attr("class") == darkIconClass) { |
| 158 | + setThemeMode("light") |
| 159 | + } |
| 160 | + location.reload(); |
| 161 | +}); |
| 162 | +</script> |
| 163 | +<div class="container"> |
| 164 | + <div class="row main-top"> |
| 165 | + |
| 166 | + <div class="col-md-3"> |
| 167 | + <div style="word-wrap: break-word;"> |
| 168 | + <h4>February 28, 2025<br></h4> |
| 169 | + </div> |
| 170 | + </div> |
| 171 | + <div class="col-md-9"> |
| 172 | + <strong>Tags <span class="fa fa-tags"/></strong> |
| 173 | + |
| 174 | + <a class="label label-danger" href="https://sldn.softlayer.com/tags/article">article</a> |
| 175 | + |
| 176 | + <a class="label label-danger" href="https://sldn.softlayer.com/tags/sldn">sldn</a> |
| 177 | + |
| 178 | + <a class="label label-danger" href="https://sldn.softlayer.com/tags/authentication">authentication</a> |
| 179 | + |
| 180 | + <a class="label label-danger" href="https://sldn.softlayer.com/tags/errors">errors</a> |
| 181 | + |
| 182 | + </div> |
| 183 | + </div> |
| 184 | + <hr> |
| 185 | + <div class="row"> |
| 186 | + <div class="col-md-12"> |
| 187 | + <div class="well well-sm article" style="word-wrap: break-word;"> |
| 188 | + <div class="article-title"> |
| 189 | + <h1>Failed to Exchange Token</h1> |
| 190 | + <small>How to fix the 'SoftLayer_Exception: Failed to exchange token (HTTP 500)' error</small> |
| 191 | + </div> |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + <h1 id="the-fix">The Fix</h1> |
| 196 | +<p>The user getting this error will need to have their <a href="https://cloud.ibm.com/docs/account?topic=account-iamuserinv&interface=ui#change-ibm-id">IBMid Updated</a>.</p> |
| 197 | +<p>Basically, just press this button on the users profile page, and link it to a currently valid IBMid</p> |
| 198 | +<img src="https://sldn.softlayer.com/img/articles/UpdateIBMid.png" alt="Update IBMid" width="100%"/> |
| 199 | +<h1 id="the-problem">The Problem</h1> |
| 200 | +<p><code>SoftLayer_Exception: Failed to exchange token (HTTP 500)</code> Happens because the user on your account is linked to an IBMid that is no longer valid. |
| 201 | +On January 22 2025, an update went out allowing better integration with IBM’s IAM policies for Classic Infrastructure users, which requires users be linked to a valid IBMid now.</p> |
| 202 | + |
| 203 | + </div> |
| 204 | + </div> |
| 205 | + |
| 206 | + </div> |
| 207 | + <hr> |
| 208 | + <div class="row"> |
| 209 | + <div class="col-md-6"> |
| 210 | + <div class="well well-sm footer" style="word-wrap: break-word;"> |
| 211 | + <strong>Feedback? <span class="fas fa-comment"/></strong> |
| 212 | + <p> |
| 213 | + If this article contains any error, or leaves any of your questions unanswered, please help us out by |
| 214 | + opening up a github issue.<br> |
| 215 | + <a class="" href="https://github.com/softlayer/githubio_source/issues/new?title=Feedback%20for%20article%20-%20Failed%20to%20Exchange%20Token&body=Feedback+regarding%3A%20https%3a%2f%2fsldn.softlayer.com%2farticle%2fFailedToExchangeToken%2f"> Open an issue</a> |
| 216 | + <i class="fab fa-github" alt="github"></i> |
| 217 | + <span> - </span> |
| 218 | + <a class="" href="https://github.com/softlayer/githubio_source/edit/master/content/article/FailedToExchangeToken.md" style="text-align: right;"> Quick Edit</a> |
| 219 | + <i class="fab fa-github" alt="github"></i> |
| 220 | + |
| 221 | + </p> |
| 222 | + </div> |
| 223 | +</div> |
| 224 | + |
| 225 | + </div> |
| 226 | +<footer> |
| 227 | + <div class="row"> |
| 228 | + <div class="col-sm-12 footer"> |
| 229 | + <p>© SoftLayer 2025<br> |
| 230 | + Built with <a href="https://github.com/spf13/hugo">Hugo</a></p> |
| 231 | + </div> |
| 232 | + </div> |
| 233 | +</footer> |
| 234 | +</div> |
| 235 | + |
| 236 | + <script src="https://sldn.softlayer.com/js/jquery.js"></script> |
| 237 | + <script src="https://sldn.softlayer.com/js/bootstrap.js"></script> |
| 238 | +</body> |
| 239 | +</html> |
| 240 | + |
0 commit comments