문의 시, 사용하시는 개발환경과 디벨로퍼스 앱ID를 알려주세요.
___ID 1084184 / 안드로이드 스튜디오에서 개발중입니다.
푸시알림에서 토큰등록후 메세지를 보낼때 다음과 같은 오류가 생깁니다
2024-06-12 18:34:09.393 21847-21984 okhttp.OkHttpClient com.bestapp.rice I ← 403 Forbidden https://kapi.kakao.com/v2/push/register (128ms)
2024-06-12 18:34:09.393 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Date: Wed, 12 Jun 2024 09:34:09 GMT
2024-06-12 18:34:09.393 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Server: Apache
2024-06-12 18:34:09.393 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Access-Control-Allow-Origin: *
2024-06-12 18:34:09.395 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
2024-06-12 18:34:09.395 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Access-Control-Allow-Headers: Content-Type,X-Requested-With,Accept,Authorization,Origin,KA,Cache-Control,Pragma
2024-06-12 18:34:09.397 21847-21984 okhttp.OkHttpClient com.bestapp.rice I X-Request-ID: 2b8ba916-0374-4e9b-bb4c-e90eefc848eb
2024-06-12 18:34:09.398 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Caller-AppId: 1084177
2024-06-12 18:34:09.398 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Content-Type: application/json;charset=UTF-8
2024-06-12 18:34:09.399 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Content-Length: 55
2024-06-12 18:34:09.402 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Keep-Alive: timeout=10, max=500
2024-06-12 18:34:09.402 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Connection: Keep-Alive
2024-06-12 18:34:09.403 21847-21984 okhttp.OkHttpClient com.bestapp.rice I {“msg”:“App(rice) disabled KPUSHER service.”,“code”:-3}
2024-06-12 18:34:09.404 21847-21984 okhttp.OkHttpClient com.bestapp.rice I ← END HTTP (55-byte body)
2024-06-12 18:34:09.493 21847-21984 okhttp.OkHttpClient com.bestapp.rice I → POST https://kapi.kakao.com/v2/push/send
2024-06-12 18:34:09.496 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Content-Type: application/json; charset=UTF-8
2024-06-12 18:34:09.497 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Content-Length: 244
2024-06-12 18:34:09.499 21847-21984 okhttp.OkHttpClient com.bestapp.rice I {“uuids”:[“17110993”],“pushMessage”:{“collapse”:“user”,“time_to_live”:17200,“priority”:“normal”,“notification”:{“title”:“알림”,“body”:“…이 모임에 참여했습니다.”,“icon”:“”,“sound”:“default”,“tag”:“user”,“color”:“”}},“bypass”:false}
2024-06-12 18:34:09.501 21847-21984 okhttp.OkHttpClient com.bestapp.rice I → END POST (244-byte body)
2024-06-12 18:34:09.508 21847-21847 FCM com.bestapp.rice D APA91bGQYlm84adsW0EHILikNwQ4FzOJVSi1ANf3qMfjlU2b8twpEWwGmnqzZofKR9bR2AvhyeGrS_j-eGxxua5Ew9Ny7Qh9qG5POo2zEEryb3OMorTe-5ZqnKWOHmPkW0zTH0_jmIhD
2024-06-12 18:34:09.511 21847-21847 Compatibil…geReporter com.bestapp.rice D Compat change id reported: 147798919; UID 10203; state: ENABLED
2024-06-12 18:34:09.521 21847-21984 okhttp.OkHttpClient com.bestapp.rice I ← 401 Unauthorized https://kapi.kakao.com/v2/push/send (18ms)
2024-06-12 18:34:09.521 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Date: Wed, 12 Jun 2024 09:34:09 GMT
2024-06-12 18:34:09.522 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Server: Apache
2024-06-12 18:34:09.522 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Access-Control-Allow-Origin: *
2024-06-12 18:34:09.523 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
2024-06-12 18:34:09.523 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Access-Control-Allow-Headers: Content-Type,X-Requested-With,Accept,Authorization,Origin,KA,Cache-Control,Pragma
2024-06-12 18:34:09.523 21847-21984 okhttp.OkHttpClient com.bestapp.rice I X-Request-ID: 4eac25ce-b330-49a2-b8c9-f3bc387d0de0
2024-06-12 18:34:09.523 21847-21984 okhttp.OkHttpClient com.bestapp.rice I WWW-Authenticate: KakaoAK error=invalid_token
2024-06-12 18:34:09.523 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Caller-AppId: 1084177
2024-06-12 18:34:09.524 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Content-Type: application/json;charset=UTF-8
2024-06-12 18:34:09.524 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Content-Length: 74
2024-06-12 18:34:09.524 21847-21847 AndroidRuntime com.bestapp.rice E FATAL EXCEPTION: main
Process: com.bestapp.rice, PID: 21847
retrofit2.HttpException: HTTP 403 Forbidden
at retrofit2.KotlinExtensions$await$2$2.onResponse(KotlinExtensions.kt:53)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:164)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1be92fc, Dispatchers.Main.immediate]
2024-06-12 18:34:09.524 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Keep-Alive: timeout=10, max=499
2024-06-12 18:34:09.524 21847-21984 okhttp.OkHttpClient com.bestapp.rice I Connection: Keep-Alive
2024-06-12 18:34:09.525 21847-21984 okhttp.OkHttpClient com.bestapp.rice I {“msg”:“appKeyType is REST_API_KEY. but expected [ADMIN_KEY]”,“code”:-401}
2024-06-12 18:34:09.525 21847-21984 okhttp.OkHttpClient com.bestapp.rice I ← END HTTP (74-byte body)
2024-06-12 18:34:09.536 21847-21847 Process com.bestapp.rice I Sending signal. PID: 21847 SIG: 9