Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Fix redis connection error message #38358

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

Closed
wants to merge 1 commit into from

Conversation

alexander-schranz
Copy link
Contributor

Use correct instance of redis to getLastError

Q A
Branch? 4.3
Bug fix? no
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

The $redis is only set in the tests, the correct redis instance is available under $this->connection.

Reproduce: give a false AUTH to the redis:

Before:

[Error]
Call to a member function getLastError() on null

Now:

[Symfony\Component\Messenger\Exception\InvalidArgumentException]
Redis connection failed: ERR Client sent AUTH, but no password is set

Use correct instance of redis to getLastError
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.
Note that 4.3 is not maintained anymore so that this will go on 4.4

@nicolas-grekas nicolas-grekas changed the title Fix redis connection error message [Messenger] Fix redis connection error message Sep 30, 2020
@alexander-schranz
Copy link
Contributor Author

@nicolas-grekas oh thx then only #38359 is relevant.

@nicolas-grekas
Copy link
Member

Thank you @alexander-schranz.

nicolas-grekas added a commit that referenced this pull request Sep 30, 2020
…schranz)

This PR was submitted for the 4.3 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Messenger] Fix redis connection error message

Use correct instance of redis to getLastError

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #...
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

The `$redis` is only set in the tests, the correct redis instance is available under `$this->connection`.

Reproduce: give a false `AUTH` to the redis:

Before:

> [Error]
>  Call to a member function getLastError() on null

Now:

>  [Symfony\Component\Messenger\Exception\InvalidArgumentException]
>  Redis connection failed: ERR Client sent AUTH, but no password is set

Commits
-------

f4e42ad Fix redis connection error message
This was referenced Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.