doc-exports/docs/ocr/umn/ocr_01_0040.html
Sheng, Lichang 86871abfe4 OCR usermanual 20240111 v2
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Sheng, Lichang <lichangsheng1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Sheng, Lichang <lichangsheng1@noreply.gitea.eco.tsi-dev.otc-service.com>
2024-01-17 10:42:31 +00:00

17 lines
1.9 KiB
HTML

<a name="ocr_01_0040"></a><a name="ocr_01_0040"></a>
<h1 class="topictitle1">Why Am I Experiencing Token Retrieval Failure When Calling an OCR API Using Postman?</h1>
<div id="body0000001752854341"><p id="ocr_01_0040__p157815146561">When obtaining a token, refer to the error message and select the appropriate solution.</p>
<ul id="ocr_01_0040__ul67816148567"><li id="ocr_01_0040__li67821435614">Check whether the service region in the body and the corresponding key value are correct.</li><li id="ocr_01_0040__li579191465616">If error message "The userInfo is wrong" is displayed, do the following:<p id="ocr_01_0040__p187911435613"><a name="ocr_01_0040__li579191465616"></a><a name="li579191465616"></a>Set <strong id="ocr_01_0040__b86356862793910">username</strong> and <strong id="ocr_01_0040__b101967349793910">domainname</strong> correctly. Typically, the value of <strong id="ocr_01_0040__b68463073493910">username</strong> is the same as that of <strong id="ocr_01_0040__b154591921893910">domainname</strong>. If you are not sure about the value, log in to the <strong id="ocr_01_0040__b82283276129">My Credentials</strong> page. If you use an IAM account to obtain the token, set the parameters as follows:</p>
<p id="ocr_01_0040__p87971412565"><strong id="ocr_01_0040__b135906937893910">username</strong>: IAM username (subaccount name)</p>
<p id="ocr_01_0040__p167918145565"><strong id="ocr_01_0040__b90484437693910">domainname</strong>: account name</p>
</li><li id="ocr_01_0040__li1793143568">If the error code "APIGW.0101" is displayed, perform the following operation:<p id="ocr_01_0040__p27981414562"><a name="ocr_01_0040__li1793143568"></a><a name="li1793143568"></a>Check whether the URL used to obtain the token is correct. </p>
</li></ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ocr_01_0109.html">Token-based Authentication</a></div>
</div>
</div>