GithubHelp home page GithubHelp logo

Comments (7)

dragonmantank avatar dragonmantank commented on June 2, 2024

Normally, yes, @ error suppression is a bad thing. In this case it's done to cut down on the amount of deprecation errors that are thrown, and the error suppression will be removed in v3. In v3 the start() method will not be nearly as open-ended as it currently is and will require a Vonage\Verify\Request object.

That being said, passing a Vonage\Verify\Request object into start() should not generate any errors at all, as it has all the information necessary to create the internal objects and make the HTTP request to us. Can you provide the full stack trace of the error you are getting?

from nexmo-laravel.

gothiquo avatar gothiquo commented on June 2, 2024

Thanks for the answer @dragonmantank !
Here is my call: $verification = Nexmo::verify()->start(new Request($phone, 'Mealthi'));
And then here the exception thrown:
image

As I mentioned above, the problem is happening in the class /Verify/Client.php

from nexmo-laravel.

dragonmantank avatar dragonmantank commented on June 2, 2024

Sorry for the bit of the delay, New Years and all.

Are you running PHP 8? I know the error handler signature changed between 7 and 8, and we recently pushed a fix to handle that around the PHP 8 release date. Can you try upgrading the packages to see if that fixes it? PHP 8 support was added in 2.7.0 of our core library. You can check which version of our library you are using with:

composer info vonage/client-core or composer info nexmo/client-core

If the library is less than 2.7.0, you should be able to update it with:

composer update nexmo/laravel --with-dependencies

should work. You may need to try

composer update nexmo/laravel --with-all-dependencies

from nexmo-laravel.

gothiquo avatar gothiquo commented on June 2, 2024

Hi @dragonmantank ! Happy New Year!
I tried to info command to see the version: 2.6.0
So I called composer update nexmo/laravel --with-dependencies and I got the following error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
    - tymon/jwt-auth 1.0.2 requires php ^5.5.9|^7.0 -> your php version (8.0.0) does not satisfy that requirement.

And then the next command composer update nexmo/laravel --with-all-dependencies:

 Problem 1
    - Root composer.json requires laravel/framework ^8.12, found laravel/framework[v8.12.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - laravel/tinker is locked to version v2.5.0 and an update of this package was not requested.
    - laravel/tinker v2.5.0 requires illuminate/console ^6.0|^7.0|^8.0 -> found illuminate/console[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 3
    - tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
    - tymon/jwt-auth 1.0.2 requires illuminate/auth ^5.2|^6|^7|^8 -> found illuminate/auth[v5.2.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
  Problem 4
    - facade/flare-client-php 1.3.7 requires illuminate/pipeline ^5.5|^6.0|^7.0|^8.0 -> found illuminate/pipeline[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
    - facade/ignition 2.5.8 requires facade/flare-client-php ^1.3.7 -> satisfiable by facade/flare-client-php[1.3.7].
    - facade/ignition is locked to version 2.5.8 and an update of this package was not requested.

Any suggestion?

Thanks a lot
Kind regards

from nexmo-laravel.

dragonmantank avatar dragonmantank commented on June 2, 2024

Hello @gothiquo !

your php version (8.0.0) does not satisfy that requirement sums up your issue - you will need to downgrade your version of PHP to some version of PHP 7, or update whatever plugin uses tymon/jwt-auth to something that will pull in a newer version of tymon/jwt-auth that is PHP 8 compatible. This would be some other plugin from ours, as tymon/jwt-auth is not a dependency for any Vonage/Nexmo packages.

from nexmo-laravel.

gothiquo avatar gothiquo commented on June 2, 2024

Thanks a lot ! Problem Solved !

from nexmo-laravel.

dragonmantank avatar dragonmantank commented on June 2, 2024

Glad I could help!

from nexmo-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.