Coder Social home page Coder Social logo

Comments (8)

lgeorget avatar lgeorget commented on June 8, 2024

Hello!
Thank you for your bug report.
Do you have a specific configuration for GuzzleHttp (in config/packages/...)?

from hcaptcha-bundle.

Snowbaha avatar Snowbaha commented on June 8, 2024

Nothing speciale in config.yaml but I added this to my services.yaml :
image

from hcaptcha-bundle.

lgeorget avatar lgeorget commented on June 8, 2024

Unless I'm misunderstanding your config, that won't work, these are interfaces, not classes, so you cannot use them after "class: " because they're not instantiable. You have to use GuzzleHttp / Nyholm Psr7 classes. Normally you don't need those lines at all in services.yaml, the bundles should have the services ready.

from hcaptcha-bundle.

Snowbaha avatar Snowbaha commented on June 8, 2024

Ok maybe I am wrong somewhere but without theses lines, I have this error:
image

same error with the 3 services I added

This error trigger on every pages

I think the issue comme from this :
image
here

from hcaptcha-bundle.

lgeorget avatar lgeorget commented on June 8, 2024

Ah, so you do need to configure explicitly the classes that satisfy the interfaces then. if you use Guzzle, you can use:

services:
    Psr\Http\Client\ClientInterface:
        class: GuzzleHttp\Client
    Psr\Http\Message\RequestFactoryInterface:
        class: Nyholm\Psr7\Factory\Psr17Factory
    Psr\Http\Message\StreamFactoryInterface:
        class: Nyholm\Psr7\Factory\Psr17Factory

from hcaptcha-bundle.

Snowbaha avatar Snowbaha commented on June 8, 2024

Ok thank you! Maybe you can add this in your doc for symfony 3^^

I have no an validatino error even if the captcha is with good answer.
Do you think there is a issue on the service file :
image
remove the "A" because it is not find?

EDIT: I remove the "A" and it is working :)

#9

Thank you for your quick help!

from hcaptcha-bundle.

lgeorget avatar lgeorget commented on June 8, 2024

Good catch! Although it's unlikely to be the cause of the issue you describe, the validators are only used indirectly via the constraints (through which their name are derived), never directly as services.

from hcaptcha-bundle.

Snowbaha avatar Snowbaha commented on June 8, 2024

I also noticed a weird error from the paramter.yaml where the secret key was transformed to an "expend number" when it is not quoting.
So it is important to quote the secret key ^^

from hcaptcha-bundle.

Related Issues (10)

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.