Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The clients url requires slash / at the end #1885

Open
Ferror opened this issue Sep 26, 2022 · 1 comment
Open

The clients url requires slash / at the end #1885

Ferror opened this issue Sep 26, 2022 · 1 comment

Comments

@Ferror
Copy link
Contributor

Ferror commented Sep 26, 2022

Scenario

The config below with the value ELASTICSEARCH_URL=http://elasticsearch:9200 will result in the Malformed URL exception. But it will be valid for the ELASTICSEARCH_URL=http://elasticsearch:9200/ value. It seems like a bad developer experience. Especially when other Symfony URLs do not require it.

fos_elastica:
    clients:
            default:
                url: '%env(ELASTICSEARCH_URL)%'

The expected behavior:

I can provide a URL with a slash or without at the end of the URL and both gonna be valid.

@stof
Copy link
Member

stof commented Apr 25, 2023

This is about what is supported in Elastica itself. That's the place to request making the / optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants