返回列表 發布新帖

IAM用戶登入API實作getServerPublicKey收到回應為500 Internal Server

219 2
發表於 2025-4-8 18:08 | 查看全部 閱讀模式
問答

緊急程度

已完結
本帖最後由 謝鉛駿 於 2025-4-9 10:24 編輯

參照 http://172.16.2.100/archives/cloud-login 裡的作法, 在執行取ServerPublicKey (getServerPublicKey) 時收到回應是 500  Internal Server Error

URI : https://iam-test.digiwincloud.com.cn/api/iam/v2/identity/publickey
httpEntity : <{Content-Type=[application/json], digi-middleware-auth-app=[XXXX]}>

最佳答案

查看完整內容

請檢查一下是不是用到POST method來呼叫了。 取得公鑰的接口要用 GET method,用POST method會報錯500  Internal Server Error Request method 'POST' not supported

評論2

鄭舜尹Lv.9 發表於 2025-4-9 09:40 | 查看全部
請檢查一下是不是用到POST method來呼叫了。
取得公鑰的接口要用 GET method,用POST method會報錯500  Internal Server Error Request method 'POST' not supported
鄭舜尹Lv.9 發表於 2025-4-14 10:59 | 查看全部
補充說明:中間件的接口呼叫失敗時,通常在response的body中會有描述錯誤原因

可以將response body印出來查看

本帖子中包含更多資源

您需要 登錄 才可以下載或查看,沒有賬號?立即注册

×

回復

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

  • 加入Line諮詢
Copyright © 2026 鼎新數智股份有限公司 版權所有 All Rights Reserved. Powered by Discuz! X5.0
關燈 在本版發帖
即将开放
返回頂部
快速回復 返回頂部 返回列表