Comments (16)
Hi! I had the same issue maybe with the empty referers. If I not use refs(), the error disappears.
{message: "WRONGTYPE Operation against a key holding the wrong kind of value",…} exception: "Predis\Response\ServerException" file: "/var/www/vendor/predis/predis/src/Client.php" line: 370 message: "WRONGTYPE Operation against a key holding the wrong kind of value" trace: [,…] 0: {file: "/var/www/vendor/predis/predis/src/Client.php", line: 335, function: "onErrorResponse",…} 1: {file: "/var/www/vendor/predis/predis/src/Client.php", line: 314, function: "executeCommand",…} 2: {file: "/var/www/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php",…} 3: {file: "/var/www/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php",…} 4: {file: "/var/www/vendor/awssat/laravel-visits/src/DataEngines/RedisEngine.php", line: 111,…} 5: {file: "/var/www/vendor/awssat/laravel-visits/src/Traits/Lists.php", line: 71,…} 6: {file: "/var/www/vendor/awssat/laravel-visits/src/Traits/Lists.php", line: 49,…}
from laravel-visits.
Yes, I did too
php
PHP 7.4.1 (cli) (built: Dec 18 2019 14:44:04) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.1, Copyright (c), by Zend Technologies
Laravel
Laravel Framework 6.17.1
laravel-visits
awssat/laravel-visits 2.2.0
[2020-03-06 21:40:10] local.ERROR: WRONGTYPE Operation against a key holding the wrong kind of value {"exception":"[object] (Predis\\Response\\ServerException(code: 0): WRONGTYPE Operation against a key holding the wrong kind of value at /var/www/html/LaravelCode/vendor/predis/predis/src/Client.php:370)
from laravel-visits.
same issue
from laravel-visits.
Hello,
If you have the ability to try PHPredis instead of predis, will this issue disappear or keep happening ?
(reference: https://laravel.com/docs/7.x/redis#phpredis
from laravel-visits.
@abdumu YES, Change to predis, this problem disappear
from laravel-visits.
I couldn't reproduce the error, but i made changes for the next version that might fix this error which is predis vs phpredis method signature difference.
I will close this and if it's not fixed in the next release, then you can re open it.
thanks
from laravel-visits.
I couldn't reproduce the error, but i made changes for the next version that might fix this error which is predis vs phpredis method signature difference.
I will close this and if it's not fixed in the next release, then you can re open it.
thanks
i have the same problem,look forward to a quicker resolution,thanks
from laravel-visits.
Hi! I had the same issue maybe with the empty referers. If I not use refs(), the error disappears.
{message: "WRONGTYPE Operation against a key holding the wrong kind of value",…} exception: "Predis\Response\ServerException" file: "/var/www/vendor/predis/predis/src/Client.php" line: 370 message: "WRONGTYPE Operation against a key holding the wrong kind of value" trace: [,…] 0: {file: "/var/www/vendor/predis/predis/src/Client.php", line: 335, function: "onErrorResponse",…} 1: {file: "/var/www/vendor/predis/predis/src/Client.php", line: 314, function: "executeCommand",…} 2: {file: "/var/www/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php",…} 3: {file: "/var/www/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php",…} 4: {file: "/var/www/vendor/awssat/laravel-visits/src/DataEngines/RedisEngine.php", line: 111,…} 5: {file: "/var/www/vendor/awssat/laravel-visits/src/Traits/Lists.php", line: 71,…} 6: {file: "/var/www/vendor/awssat/laravel-visits/src/Traits/Lists.php", line: 49,…}
I'm not use refer ,visits($project)->increment(1,false,['refer']);but it can't issue this problem
from laravel-visits.
What version of laravel-visits you are using?
from laravel-visits.
"awssat/laravel-visits": "^2.0"
from laravel-visits.
from laravel-visits.
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_CLIENT=phpredis
Replace phpredis
from laravel-visits.
原来如此,换phpredis搞定,thanks
from laravel-visits.
This wasn't solved, opened again for more debugging...
from laravel-visits.
This is also happens on version 1.5.3.
For my case, its only throw this error when I open the URL via postman. If I open the URL via browser this error doesn't raised
from laravel-visits.
I think I can report that this issue appears to have been resolved in the newer versions. I am currently using the latest version on production and I have not experienced the issue. I will close this issue, but I will reopen it if someone else reports that they are still experiencing the issue with the newer versions.
from laravel-visits.
Related Issues (20)
- PHP 8 Suppot HOT 1
- getVisitorReferer() always get no value~ HOT 9
- geoip 1.0.x-dev is preventing install on Laravel 8 HOT 1
- redis queued to database store HOT 2
- Syntax error or access violation on Migration HOT 1
- Trying to access array offset on value of type null HOT 1
- Get visits of Item for specific date range?
- Add Multiple Tags
- all period show the same result HOT 2
- Get today visitors count on the whole app HOT 1
- Remove
- Empty array for countries and languages HOT 1
- Compatibiltiy with mongodb HOT 2
- How can I delete that redis record after deleting the post? HOT 1
- There is a problem with writing the data.
- Periods options only works a few of them HOT 4
- Compatibility issue with Laravel 10 HOT 1
- Redis server went away (php_network_getaddresses: getaddrinfo for cache failed) HOT 1
- Target class [eloquent] does not exist. HOT 3
- How to store redis data in mysql HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-visits.