Comments (8)
Hello!
Thank you for your bug report.
Do you have a specific configuration for GuzzleHttp (in config/packages/...)?
from hcaptcha-bundle.
Nothing speciale in config.yaml but I added this to my services.yaml :
from hcaptcha-bundle.
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.
Ok maybe I am wrong somewhere but without theses lines, I have this error:
same error with the 3 services I added
This error trigger on every pages
I think the issue comme from this :
here
from hcaptcha-bundle.
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.
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 :
remove the "A" because it is not find?
EDIT: I remove the "A" and it is working :)
Thank you for your quick help!
from hcaptcha-bundle.
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.
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)
- Server Error when captcha empty HOT 5
- Symfony 6.0 support HOT 7
- Unable to install HOT 1
- Support for custom Authenticator? HOT 5
- meteo-concept/hcaptcha-bundle dev-master requires psr/http-factory-implementation HOT 2
- meteo-concept/hcaptcha-bundle conflicts with Symfony 5.2.* HOT 4
- PHP 8 compatibility HOT 3
- little typo in the doc HOT 1
- Symfony 3.2 issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcaptcha-bundle.