로그인 기능 사용중, access_token 발급이 안되는 경우 ㅠ

  1. 요청
    $kakaoLoginUrl = “https://kauth.kakao.com/oauth/authorize?client_id=".$restAPIKey."&redirect_uri=".$callbacURI."&response_type=code”;

콜백 주소도 개발자홈에 정확히 입력한상태입니다.
일단, 토큰발급을 받을수 있는 코드를 받아온 후 콜백 주소에서 토큰발행을 못하고 있습니다.

  1. 응답

$returnUrl = “https://kauth.kakao.com/oauth/token?grant_type=authorization_code&client_id=".$restAPIKey."&redirect_uri=".$callbacURI."&code=”.$returnCode;

$isPost = false;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $returnUrl);
curl_setopt($ch, CURLOPT_POST, $isPost);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$loginResponse = curl_exec ($ch);
$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

응답코드 status_code= 0 이고
토큰은 널입니다.

localhost 에선 잘되고, 서버에 올려서 요청하면 응답이 없습니다.
리턴URL 및 도메인 입력은 잘 되어있습니다.

왜그럴까요? ㅠ

최근 요청하신 기록을 확인해 보니, 정상적으로 토큰 발급이 된 내역이 있습니다.
해결이 되신 것인가요?

제가 테스트를 해 봤는데 /oauth/token 요청 자체가 카카오쪽에 들어오지를 못했어요.
해당 서버에서 접속이 안되는 상황은 아닌지 의심스러워요. 해당 페이지 에러의 경우도 카카오쪽 에러가 아니고, 자체 에러를 찍으신 부분이라 잘 모르겠네요 ㅠ