web-push-libs / web-push-php

Web Push library for PHP
MIT License
1.71k stars 298 forks source link

PHP Fatal error: Uncaught InvalidArgumentException: Invalid data provided in /web-push-php/spomky-labs/base64url/src/Base64Url.php:45 #306

Closed polzkey closed 8 months ago

polzkey commented 3 years ago

I found this error in my log file.

`[21-Nov-2020 22:58:00 UTC] PHP Fatal error: Uncaught InvalidArgumentException: Invalid data provided in /home/public_html/web-push-php-2/spomky-labs/base64url/src/Base64Url.php:45 Stack trace:

0 /home/public_html/web-push-php-2/minishlink/web-push/src/Encryption.php(83): Base64Url\Base64Url::decode('rDs2GjNcV pihAc...')

1 /home/publichtml/web-push-php-2/minishlink/web-push/src/Encryption.php(65): Minishlink\WebPush\Encryption::deterministicEncrypt('\x00\x00{"title":"Eme...', '\x04)\xED\xBD\xC4k\xE0{\t--\xD7G\x8F...', 'rDs2GjNcV pihAc...', 'aesgcm', Array, '\xC4\xC3\xAB\x7FNi0/Z\x18\x14\x00\x17\x85\x8E...')

2 /home/public_html/web-push-php-2/minishlink/web-push/src/WebPush.php(220): Minishlink\WebPush\Encryption::encrypt('\x00\x00{"title":"Eme...', 'BCntvcRr4HsJLV8...', 'rDs2GjNcV pihAc...', 'aesgcm')

3 /home/public_html/web-push-php-2/minishlink/web-push/src/WebPush.php(168): Minishlink\WebPush\WebPush->prepare(Array)

4 /home/public_html/script/send-notific in /home/public_html/web-push-php-2/spomky-labs/base64url/src/Base64Url.php on line 45`

Any help will be greatly appriciated. Thank you!