Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught exception 'RuntimeException' with message 'Curve curve #153

Closed
akhilesh-kk2 opened this issue Mar 21, 2018 · 6 comments

Comments

@akhilesh-kk2
Copy link

akhilesh-kk2 commented Mar 21, 2018

Hi,
Issue is already raised at #14

I tried to send push using V4, but code throwing new error messages. Please find error message below.

  1. Warning: hex2bin(): Hexadecimal input string must have an even length in C:\xxxxxx\web-push-php-example\vendor\minishlink\web-push\src\Utils.php on line 60

  2. Warning: hex2bin(): Hexadecimal input string must have an even length in C:\xxxxxxxx\web-push-php-example\vendor\minishlink\web-push\src\Utils.php on line 61

  3. Fatal error: Uncaught TypeError: bin2hex() expects parameter 1 to be string, boolean given in C:\xxxxxx\web-push-php-example\vendor\minishlink\web-push\src\Encryption.php on line 94

  4. TypeError: bin2hex() expects parameter 1 to be string, boolean given in C:\xxxxx\web-push-php-example\vendor\minishlink\web-push\src\Encryption.php on line 94

@naval-goel
Copy link

i am facing the same issue. in earlier version, in more than 70% of the cases, the error was curve point error which is issue number #14 and now it is the above mentioned issue. it does not come for all subscribers but is throwing the error for more than 70% of the cases. Please help.

@Minishlink
Copy link
Member

Please fill in the issue template. Also provide your php.ini

@akhilesh-kk2
Copy link
Author

akhilesh-kk2 commented Apr 10, 2018

Hi Minishlink,
I already fill the issue template, but don't know where to check it.
Sending it again below manually.

  1. Yes , I have read the README entirely
  2. Yes, I have verified in the issues that my problem hasn't already been resolved
  3. I am tried on both php 5.6 and php 7.1
  4. installed and enabled PHP extensions : gmp, mbstring, curl and openssl
  5. experiencing problems with : Chrome, Firefox
  6. Features used : VAPID Support
  7. Issue in php 7 is already mentioned above.
  8. Issue in php 5.6 is raised at Runtime exception with Mdanter ECC library #14

@t1gor
Copy link
Contributor

t1gor commented Jun 22, 2018

@Minishlink any update on the issue so far?

@RedSpeeds
Copy link

Same issue here unable to solve it

@t1gor
Copy link
Contributor

t1gor commented Aug 24, 2018

If that helps someone, in my case it was an error in my code, nothing lib related. This comment actually pointer me to the right direction:

Please make sure that the user public key and user auth token are base 64 encoded (in the MIME specification RFC2045).

A frequent mistake is to encode in URL-safe base 64.

#12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants