oauth2-basic 플러그인에서 토큰을 받은 후 500 오류 발생

다른 사람들이 해결한 것 같은 이상한 오류에 직면해 있습니다. 기본적으로 API에서 토큰은 받아들이고 있지만, 사용자 세부 정보 API 호출이 전혀 이루어지지 않고 있습니다. 대신 콜백 URL이 오류 메시지 없이 500 오류로 실패하고 있습니다.

로그에서 확인한 내용은 다음과 같습니다.

OAuth2 Debugging: response status 200

From POST https://developer-dev.api.autodesk.com/authentication/v2/token

Headers:
--- !ruby/hash-with-ivars:Faraday::Utils::Headers
ivars:
  :@names:
    user-agent: User-Agent
    content-type: Content-Type
    authorization: Authorization
elements:
  User-Agent: Faraday v2.14.0
  Content-Type: application/x-www-form-urlencoded
  Authorization: Basic xxx


Body:
--- '{"access_token":"xxxx","token_type":"Bearer","expires_in":3599,"refresh_token":"xxxx"}

  '

Processing by Users::OmniauthCallbacksController#complete as HTML
  Parameters: {"code"=>"xxx", "state"=>"d77d766602c9302ad6967569883d4c41ef0ac9847d0b85f8", "provider"=>"oauth2_basic"}
OAuth2 Debugging:       after_authenticate response:

      creds:
      ---
token: xxx
refresh_token: xxx
expires_at: 1767886006
expires: true


      uid:

      info:
      ---
name:


      extra:
      --- {}


Completed 500 Internal Server Error in 81ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)

어떤 오류 메시지도 나오지 않아 문제가 발생하는 원인을 알 수 없습니다. OAuth2 fetch user details, OAuth2 user JSON URL, OAuth2 JSON user ID path 등을 설정했는지 확인했지만, 사용자 세부 정보 API에 대한 API 호출이 전혀 이루어지지 않는 것을 볼 수 있습니다.

도움이 될 만한 정보가 있다면 감사하겠습니다.

참고로 서버와 Docker에 모두 접근할 수 있습니다. 디버깅이 필요하시면 제가 시도해 볼 수 있습니다.