문의 시, 디벨로퍼스 앱ID를 알려주세요.
___1084184
가이드의 내용대로 작성했는데 401 오류가 발생했습니다 google 비공개 키 쪽이 문제일까요?
I → POST https://kapi.kakao.com/v2/push/send
2024-06-17 20:16:15.786 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Content-Type: application/json; charset=UTF-8
2024-06-17 20:16:15.786 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Content-Length: 219
2024-06-17 20:16:15.786 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I {“uuids”:[“17110993”],“push_message”:{“for_fcm”:{“collapse”:“user”,“time_to_live”:17200,“priority”:“normal”,“notification”:{“title”:“알림”,“body”:“…이 모임에 참여했습니다.”,“tag”:“user”}}},“by_pass”:false}
2024-06-17 20:16:15.786 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I → END POST (219-byte body)
2024-06-17 20:16:15.798 8034-8034 Choreographer com.bestapp.zipbab I Skipped 41 frames! The application may be doing too much work on its main thread.
2024-06-17 20:16:15.799 8034-8171 TrafficStats com.bestapp.zipbab D tagSocket(133) with statsTag=0xffffffff, statsUid=-1
2024-06-17 20:16:15.807 8034-8034 RecyclerView com.bestapp.zipbab E No adapter attached; skipping layout
2024-06-17 20:16:15.820 8034-8080 EGL_emulation com.bestapp.zipbab D app_time_stats: avg=215.22ms min=12.39ms max=3190.85ms count=16
2024-06-17 20:16:15.823 8034-8175 okhttp.OkHttpClient com.bestapp.zipbab I → POST https://kapi.kakao.com/v2/push/register
2024-06-17 20:16:15.823 8034-8175 okhttp.OkHttpClient com.bestapp.zipbab I Content-Type: application/x-www-form-urlencoded
2024-06-17 20:16:15.824 8034-8175 okhttp.OkHttpClient com.bestapp.zipbab I Content-Length: 237
2024-06-17 20:16:15.825 8034-8175 okhttp.OkHttpClient com.bestapp.zipbab I uuid=17110993&device_id=dldbzO_IQx-Nuot0crWyGa&push_type=fcm&push_token=dldbzO_IQx-Nuot0crWyGa%3AAPA91bFuOXm5nzAJ0dLdfm2QmmFYIu8LTaBqSeENl2aIDGMhZ9Aplklw7Ue5YTFz5AS0p6rIKluwQOYX5qxskWRNJF5nqH_u_dIvuoREEUBmAeMj3ogYHWhr2Tbs7Ztu6GTXqbbaQIz_
2024-06-17 20:16:15.825 8034-8175 okhttp.OkHttpClient com.bestapp.zipbab I → END POST (237-byte body)
2024-06-17 20:16:15.827 8034-8049 OpenGLRenderer com.bestapp.zipbab I Davey! duration=717ms; Flags=0, FrameTimelineVsyncId=1577386, IntendedVsync=10297103731670, Vsync=10297787064976, InputEventId=475104521, HandleInputStart=10297797823700, AnimationStart=10297797896800, PerformTraversalsStart=10297798320200, DrawStart=10297805906700, FrameDeadline=10297120398336, FrameInterval=10297796839000, FrameStartTime=16666666, SyncQueued=10297807421300, SyncStart=10297807602700, IssueDrawCommandsStart=10297807725800, SwapBuffers=10297816940900, FrameCompleted=10297821580600, DequeueBufferDuration=16900, QueueBufferDuration=226800, GpuCompleted=10297821580600, SwapBuffersCompleted=10297818728600, DisplayPresentTime=0, CommandSubmissionCompleted=10297816940900,
2024-06-17 20:16:15.832 8034-8175 TrafficStats com.bestapp.zipbab D tagSocket(158) with statsTag=0xffffffff, statsUid=-1
2024-06-17 20:16:15.867 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I ← 401 Unauthorized https://kapi.kakao.com/v2/push/send (80ms)
2024-06-17 20:16:15.867 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Date: Mon, 17 Jun 2024 11:16:17 GMT
2024-06-17 20:16:15.867 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Server: Apache
2024-06-17 20:16:15.867 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Access-Control-Allow-Origin: *
2024-06-17 20:16:15.867 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
2024-06-17 20:16:15.868 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Access-Control-Allow-Headers: Content-Type,X-Requested-With,Accept,Authorization,Origin,KA,Cache-Control,Pragma
2024-06-17 20:16:15.868 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I X-Request-ID: 323640d7-f89e-4942-824c-97cb951ae370
2024-06-17 20:16:15.868 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I WWW-Authenticate: KakaoAK error=invalid_token
2024-06-17 20:16:15.868 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Caller-AppId: 1084184
2024-06-17 20:16:15.868 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Content-Type: application/json;charset=UTF-8
2024-06-17 20:16:15.869 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Content-Length: 74
2024-06-17 20:16:15.869 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Keep-Alive: timeout=10, max=500
2024-06-17 20:16:15.869 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I Connection: Keep-Alive
2024-06-17 20:16:15.870 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I {“msg”:“appKeyType is REST_API_KEY. but expected [ADMIN_KEY]”,“code”:-401}
2024-06-17 20:16:15.870 8034-8171 okhttp.OkHttpClient com.bestapp.zipbab I ← END HTTP (74-byte body)
2024-06-17 20:16:15.884 8034-8034 AndroidRuntime com.bestapp.zipbab E FATAL EXCEPTION: main
Process: com.bestapp.zipbab, PID: 8034
retrofit2.HttpException: HTTP 401 Unauthorized
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}@a9a9d59, Dispatchers.Main.immediate]
2024-06-17 20:16:15.891 8034-8034 Process com.bestapp.zipbab I Sending signal. PID: 8034 SIG: 9
2024-06-17 20:16:45.813 8186-8186 ApplicationLoaders com.bestapp.zipbab D Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar
2024-06-17 20:16:45.813 8186-8186 ApplicationLoaders com.bestapp.zipbab D Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar
2024-06-17 20:16:45.816 8186-8186 ziparchive com.bestapp.zipbab W Unable to open ‘/data/data/com.bestapp.zipbab/code_cache/.overlay/base.apk/classes11.dm’: No such file or directory
2024-06-17 20:16:45.816 8186-8186 ziparchive com.bestapp.zipbab W Unable to open ‘/data/data/com.bestapp.zipbab/code_cache/.overlay/base.apk/classes17.dm’: No such file or directory
2024-06-17 20:16:45.817 8186-8186 ziparchive com.bestapp.zipbab W Unable to open ‘/data/data/com.bestapp.zipbab/code_cache/.overlay/base.apk/classes7.dm’: No such file or directory
2024-06-17 20:16:45.818 8186-8186 ziparchive com.bestapp.zipbab W Unable to open ‘/data/app/~~tJ3QYQ_Y-0k3l38YfBLASQ==/com.bestapp.zipbab-hLEW8xh6sqc8sZ3wdwCKTw==/base.dm’: No such file or directory
2024-06-17 20:16:45.818 8186-8186 ziparchive com.bestapp.zipbab W Unable to open ‘/data/app/~~tJ3QYQ_Y-0k3l38YfBLASQ==/com.bestapp.zipbab-hLEW8xh6sqc8sZ3wdwCKTw==/base.dm’: No such file or directory
2024-06-17 20:16:46.031 8186-8186 nativeloader com.bestapp.zipbab D Configuring clns-6 for other apk /data/app/~~tJ3QYQ_Y-0k3l38YfBLASQ==/com.bestapp.zipbab-hLEW8xh6sqc8sZ3wdwCKTw==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~tJ3QYQ_Y-0k3l38YfBLASQ==/com.bestapp.zipbab-hLEW8xh6sqc8sZ3wdwCKTw==/lib/x86_64:/data/app/~~tJ3QYQ_Y-0k3l38YfBLASQ==/com.bestapp.zipbab-hLEW8xh6sqc8sZ3wdwCKTw==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.bestapp.zipbab
2024-06-17 20:16:46.055 8186-8186 GraphicsEnvironment com.bestapp.zipbab V Currently set values for:
2024-06-17 20:16:46.055 8186-8186 GraphicsEnvironment com.bestapp.zipbab V angle_gl_driver_selection_pkgs=[]
2024-06-17 20:16:46.055 8186-8186 GraphicsEnvironment com.bestapp.zipbab V angle_gl_driver_selection_values=[]
2024-06-17 20:16:46.055 8186-8186 GraphicsEnvironment com.bestapp.zipbab V ANGLE GameManagerService for com.bestapp.zipbab: false
2024-06-17 20:16:46.055 8186-8186 GraphicsEnvironment com.bestapp.zipbab V com.bestapp.zipbab is not listed in per-application setting
2024-06-17 20:16:46.055 8186-8186 GraphicsEnvironment com.bestapp.zipbab V Neither updatable production driver nor prerelease driver is supported.
2024-06-17 20:16:46.080 8186-8186 Compatibil…geReporter com.bestapp.zipbab D Compat change id reported: 183155436; UID 10192; state: ENABLED
2024-06-17 20:16:46.116 8186-8186 FirebaseApp com.bestapp.zipbab I Device unlocked: initializing all Firebase APIs for app [DEFAULT]
2024-06-17 20:16:46.322 8186-8186 FirebaseSessions com.bestapp.zipbab D Initializing Firebase Sessions SDK.
2024-06-17 20:16:46.324 8186-8214 FirebaseSessions com.bestapp.zipbab D No Sessions subscribers. Not listening to lifecycle events.
2024-06-17 20:16:46.330 8186-8186 Compatibil…geReporter com.bestapp.zipbab D Compat change id reported: 3400644; UID 10192; state: ENABLED
2024-06-17 20:16:46.377 8186-8186 FirebaseInitProvider com.bestapp.zipbab I FirebaseApp initialization successful
2024-06-17 20:16:46.467 8186-8229 TRuntime.C…ortBackend com.bestapp.zipbab I Making request to: https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog
2024-06-17 20:16:46.480 8186-8229 TrafficStats com.bestapp.zipbab D tagSocket(76) with statsTag=0xffffffff, statsUid=-1
2024-06-17 20:16:48.798 8186-8229 TRuntime.C…ortBackend com.bestapp.zipbab I Status Code: 200
2024-06-17 20:16:51.926 8186-8236 ProfileInstaller com.bestapp.zipbab D Installing profile for com.bestapp.zipbab