Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@alexander-schranz
Copy link
Contributor

Use correct instance of redis to getLastError

QA
Branch?4.3
Bug fix?no
New feature?no
Deprecations?no
TicketsFix #...
LicenseMIT
Doc PRsymfony/symfony-docs#...

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

Reproduce: give a falseAUTH 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-grekasnicolas-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-grekasnicolas-grekas changed the titleFix redis connection error message[Messenger] Fix redis connection error messageSep 30, 2020
@alexander-schranz
Copy link
ContributorAuthor

@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 requestSep 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 messageUse 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 nullNow:>  [Symfony\Component\Messenger\Exception\InvalidArgumentException]>  Redis connection failed: ERR Client sent AUTH, but no password is setCommits-------f4e42ad Fix redis connection error message
This was referencedOct 4, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@chalasrchalasrchalasr approved these changes

@srozesrozeAwaiting requested review from sroze

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

5 participants

@alexander-schranz@nicolas-grekas@chalasr@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp