Questions tagged [mercure]

Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients. Mercure Hub is a reference implementation of the protocol.

Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients. Mercure Hub is a reference implementation of the protocol. See the Mercure GitHub project page for more details.

101 questions
0
votes
0 answers

Caddy server SSL installed but not working

I have a Caddy config file that I used to run a Caddy server. The file is as below: # Learn how to configure the Mercure.rocks Hub on http s://mercure.rocks/docs/hub/config { http_port 4133 https_port 4134 email o@o.com # Debug mode…
Dev Dev
  • 314
  • 4
  • 17
0
votes
1 answer

Mercure with symfony not working with vue

I got a problem with configure mercure under symfony with vue. I'm using mercure hub which is attached in symfony cli. in .env file I changed mercure urls to using http because it caused me error with certificate(which was included by…
0
votes
0 answers

Couldn't connect to server for "http://mercure:7001/.well-known/mercure" // TransportException

i'm little confused about this so i want your help in my docker-compose i think i have configured all want it must be. But the thing is when im trying publish somthing in mercure via symfony he dont want to do it but when i try without passing via…
0
votes
1 answer

Run Mercure on production with Symfony and Apache | HTTPS problem

i have a symfony app and i'm using Mercure. To run Mercure i use this command SERVER_NAME=:3000 MERCURE_PUBLISHER_JWT_KEY='something' MERCURE_SUBSCRIBER_JWT_KEY='something' CORS_ALLOWED_ORIGINS=https://my-domain.cz ALLOW_ANONYMOUS=1 ./mercure run…
0
votes
1 answer

Start Mercure Hub Server with Symfony Command class– Issue [Symfony]

The idea is: Instead of launching Mercure Hub server directly in our command line like this: We want to make it easier by using symfony command, therefore we can launch the server like this: NB: We have been downloaded the archive corresponding to…
Medinho
  • 193
  • 1
  • 3
  • 10
0
votes
3 answers

Symfony Mercure Error Symfony\Component\Mercure\PublisherInterface

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use…
Lucifer
  • 21
  • 3
0
votes
0 answers

Docker mercure not sending updates with symfony

I made simple docker based application with NGINX, PHP, PostgreSQL, Node, Mercure and Symfony just to test the capabilities of Mercure. The problem is that I'm not getting any updates from Symfony publisher service, there's no errors in logs, no…
Lladdmi
  • 15
  • 7
0
votes
1 answer

Can't install Mercure for Symfony project

I tried to follow the documentation for mercure and symfony found here but always encounter an error. The first part : >composer require mercure Works with no issue but as soon as I try to do the second one, I always get the same error. The second…
Leonos
  • 5
  • 1
0
votes
1 answer

How to put two Bearer keys in Postman?

My Symfony project uses an authentication check; so there is a token involved. Now I use Mercure as a real-time mechanism used in Symfony; it uses a JWT token also. So how can I put the two Bearer tokens in Postman in order to test my Symfony API ?
pheromix
  • 18,213
  • 29
  • 88
  • 158
0
votes
1 answer

Can not configure the new dunglas/mercure image

Problem: Dunglas Mercure just upgraded this week, and has completly change, it now use a caddy web serveur solution instead of a built-in web serveur, it seems to be very cool, but now, i can not configure my dunglas/mercure image…
0
votes
1 answer

Symfony how to use Mercure with Messenger + RabbitMQ?

I am looking to use Mercury with RabbitMQ. This is the first time that I have used Mercury as well as RabbitMQ so I am not yet good. Here is where I am: I've installed Mercure, and Messenger. Messenger.yaml framework: messenger: #…
eronn
  • 1,690
  • 3
  • 21
  • 53
0
votes
1 answer

Python - Flask with mercure_hub

I tried to follow chat implementation from here https://github.com/dunglas/mercure/tree/master/examples/chat. But so far, I didn't succeed to achieve that. For Mercure hub implementation I build a small docker compose : version: '3.5' services: …
Raphael Obadia
  • 333
  • 5
  • 14
0
votes
1 answer

fopen(http://127.0.0.1:3000/.well-known/mercure/): failed to open stream: Failed to parse address "0"

I use Symfony 5.1.*. I get this terrible bug, I don't know what's happen, I waste my day for nothing, if any one know something to save my carrier in…
Imad Najmi
  • 11
  • 3
0
votes
0 answers

Mercure publish : Peer certificate cannot be authenticated with given CA certificates for

I am trying to configure the latest version of Mercure in production mode. I am running this version mercure_0.10.3_Linux_x86_64 Running command PUBLISHER_JWT_KEY=XXXXXX \ SUBSCRIBER_JWT_KEY=XXXXXX \ CORS_ALLOWED_ORIGINS=* \ ADDR=':3000'…
reeslo
  • 1
  • 1
0
votes
2 answers

Mercure & API platform: auto-publish data

i have a symfony 5.0/API-platform back end project and a react/redux front project, i would like to dispatch updates(POST, PUT, DELETE) to connected clients. For that i am trying to achieve this locally on a windows 10 PC, i installed mercure,…
Mikalov
  • 11
  • 2
  • 6