Warning: Undefined array key "param1" in /var/www/html/index.php on line 67
Warning: Undefined array key "param2" in /var/www/html/index.php on line 69
Warning: Undefined array key "param3" in /var/www/html/index.php on line 69
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://fcm.googleapis.com/v1/projects/otentikasi-apk/messages:send` resulted in a `400 Bad Request` response:
{
"error": {
"code": 400,
"message": "The registration token is not a valid FCM registration token",
"stat (truncated...)
in /var/www/html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 /var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php(72): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 /var/www/html/vendor/guzzlehttp/promises/src/Promise.php(209): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /var/www/html/vendor/guzzlehttp/promises/src/Promise.php(158): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), NULL)
#3 /var/www/html/vendor/guzzlehttp/promises/src/TaskQueue.php(52): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 /var/www/html/vendor/guzzlehttp/promises/src/Promise.php(251): GuzzleHttp\Promise\TaskQueue->run(true)
#5 /var/www/html/vendor/guzzlehttp/promises/src/Promise.php(227): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 /var/www/html/vendor/guzzlehttp/promises/src/Promise.php(272): GuzzleHttp\Promise\Promise->waitIfPending()
#7 /var/www/html/vendor/guzzlehttp/promises/src/Promise.php(229): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 /var/www/html/vendor/guzzlehttp/promises/src/Promise.php(69): GuzzleHttp\Promise\Promise->waitIfPending()
#9 /var/www/html/vendor/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\Promise\Promise->wait()
#10 /var/www/html/vendor/guzzlehttp/guzzle/src/ClientTrait.php(95): GuzzleHttp\Client->request('POST', 'https://fcm.goo...', Array)
#11 /var/www/html/index.php(58): GuzzleHttp\Client->post('https://fcm.goo...', Array)
#12 /var/www/html/index.php(73): sendPushNotification('otentikasi-apk', 'J', 'Kode OTP', 'username: pass...', Array)
#13 {main}
thrown in /var/www/html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113