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

bug A non-numeric value encountered in vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php:107 #218

Open
khanhdq119 opened this issue Mar 1, 2018 · 8 comments
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug

Comments

@khanhdq119
Copy link

enviroment: PHP7, yii2 basic.
I config "redis" to using as queue.
In file: config/console and config/web
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => '192.168.146.252',
'port' => 8002,
'database' => 0,
'password' => '123456a@',
],
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis', // Redis connection component or its config
'channel' => 'queue', // Queue channel key
],
After I run: php yii queue/listen
I see "A non-numeric value encountered in vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php:107"

@zhuravljov
Copy link
Member

https://github.com/yiisoft/yii2-queue/blob/2.0.2/src/drivers/redis/Queue.php#L107
This is comment block. What version are you using? Need more details about the error.

@yii-bot
Copy link

yii-bot commented Apr 30, 2018

Thanks for posting in our issue tracker.
In order to properly assist you, we need additional information:

  • When does the issue occur?
  • What do you see?
  • What was the expected result?
  • Can you supply us with a stacktrace? (optional)
  • Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

@yiisoft yiisoft deleted a comment from yii-bot Apr 30, 2018
@machour machour added expired Information requested was not provided in two weeks. and removed status:need more info labels Jan 15, 2019
@yii-bot
Copy link

yii-bot commented Jan 15, 2019

It has been 2 or more weeks with no response on our request for more information.
In order for our issue tracker to be effective, we are closing this issue.

If you want it to be reopened again, feel free to supply us with the requested information.

Thanks!

This is an automated comment, triggered by adding the label expired.

@yii-bot yii-bot closed this as completed Jan 15, 2019
@mikk150
Copy link

mikk150 commented Aug 23, 2019

I have same issue

$this->redis->zadd("$this->channel.reserved", time() + $ttr, $id);

$ttr is not numeric sometimes

@samdark samdark reopened this Aug 23, 2019
@samdark
Copy link
Member

samdark commented Aug 23, 2019

Any idea when/why?

@samdark samdark added status:to be verified Needs to be reproduced and validated. type:bug Bug and removed expired Information requested was not provided in two weeks. labels Aug 23, 2019
@mikk150
Copy link

mikk150 commented Aug 23, 2019

for some reason payload is empty

@samdark
Copy link
Member

samdark commented Aug 23, 2019

We should not assume incorrect payload could be processed...

@mikk150
Copy link

mikk150 commented Aug 23, 2019

aaaaaand now I cannot reproduce it the way I literally could reproduce it 100% of the time an hour back....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug
Projects
None yet
Development

No branches or pull requests

6 participants