97 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
80
views
Mercure Hub Receive post and subscriber but the subscriber not receiving message
Some times ago, I published my first mercure hub with Coolify on my server to be used by my stack (Symfony and React).
First, I want to make it working.
On the mercure logs I have the subscriber (from ...
1
vote
1
answer
191
views
Trying to use mercure with symfony (docker config)
I'm integrating Mercure into my Symfony app and running it with Docker Compose.
When I start the container, I get the following warning:
WARN[0002] The "MERCURE_JWT_SECRET" variable is not ...
0
votes
0
answers
98
views
Symfony with Mercure and Caddy not working
I have a project that I deployed with SSL certificate with Apache to do some visualization tests in "online" rather than local.
I was trying to set up Mercure using the Symfony Bundle and ...
0
votes
0
answers
156
views
Mercure Hub CORS Issue: No 'Access-Control-Allow-Origin' Header in Response
I'm using Mercure to handle real-time updates in my Symfony project, and I have a frontend running on http://localhost:8083. However, when trying to subscribe to Mercure events, I get the following ...
1
vote
0
answers
587
views
Javascript Event Source Error: {isTrusted: true} when connecting to Mercure
I have Angular on Front - End,
I have a very weird issue:
I am connecting to a Mercure - server events with EventSource in Javascript.
In case of an error for example when I simulate wrong ...
0
votes
1
answer
295
views
Symfony Mercure : Failed to send an update
Since now 2 days I'm trying to setup mercure and Symfony project to be able to talk together
My Mercure server is a container behind nginx and seems to works :
curl -d 'topic=https://example.com/books/...
1
vote
0
answers
409
views
Mercure with Symfony and API Platform: 401 Unauthorized Error for Real-Time Notifications
I’m working on a Symfony 6 project with API Platform where users can log in and receive JWT tokens (I use lexik_jwt_authentication) to access private pages. I’m using the Mercure protocol to send real-...
1
vote
0
answers
239
views
Symfony 6 / Mercure : How do I know if a user is authorized to subscribe to a specific topic?
I'm currently developing a real-time notification system on my Symfony 6 application with Mercure 🔔
It works perfectly, for example my user Paul will receive notifications if a message is sent in a ...
0
votes
1
answer
705
views
Failed to send an update with Mercure in docker using symfony 7 in production . 404 Not found returned for MERCURE_URL
I am creating an API, and i'm having an issue sending updates to Mercure Hub with symfony 7. I have follow the Symfony current doc and implement Mercure with docker(only mercure). in my local, all ...
0
votes
1
answer
422
views
How can I use Plesk's ssl certificate in mercure docker container correctly and make the server work?
I have a docker mercure container running on plesk. but he is not available.
Now I try to load the ssl certificate manually, but unfortunately that doesn't work.
The server still tries to get ...
1
vote
0
answers
599
views
Failed to send an update Symfony 6 Mercure
version: '3.7'
services:
db:
image: mariadb:10.2.29
ports:
- "3307:3306" #outside:inside docker container from within
environment:
- MYSQL_DATABASE=test_db
- ...
1
vote
0
answers
96
views
My Symfony Entity does not publish an Update on an Get-Operation with an modified uriTemplate-Url
In an Symfony-Entity (using Apiplattform and ApiResource-Definitions) I added a second Get-Operation like
#[ApiResource(operations: [
new Get(),
new Get(uriTemplate: '/[pathtoEntity]/{id}',
...
0
votes
1
answer
154
views
Symfony Mercure (bundle) Cookiegenerator.php problem
I try to fix the Cookiegenerator.php file for generate a token with my JWT key but I have some errors :
<?php
declare(strict_types=1);
namespace App\Services\Mercure;
use App\Entity\...
0
votes
0
answers
1k
views
Symfony Mercure with Docker compose
I am trying to post private mercury updates, i follow the symfony documentation from near, as indicated I do this :
$update = new Update(
'https://example.com/books/1',
json_encode(['status' =>...
0
votes
1
answer
148
views
mySQL on DOCKER (with PHP Symfony for MERCURE bundle)
I have a problem with MySQL in Docker, by default Docker uses PostgreSQL, so I have created a MySQL image but when I launch my Dockerfile, I have some errors, in particular — problems with installing ...