Giter Site home page Giter Site logo

Predis\Response\ServerException thrown with message "WRONGTYPE Operation against a key holding the wrong kind of value" about laravel-visits HOT 16 CLOSED

awssat avatar awssat commented on May 17, 2024
Predis\Response\ServerException thrown with message "WRONGTYPE Operation against a key holding the wrong kind of value"

from laravel-visits.

Comments (16)

bsh avatar bsh commented on May 17, 2024 1

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.

hedeqiang avatar hedeqiang commented on May 17, 2024

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)

image

from laravel-visits.

malicucen avatar malicucen commented on May 17, 2024

same issue

from laravel-visits.

abdumu avatar abdumu commented on May 17, 2024

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.

hedeqiang avatar hedeqiang commented on May 17, 2024

@abdumu YES, Change to predis, this problem disappear

from laravel-visits.

abdumu avatar abdumu commented on May 17, 2024

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.

myixyt avatar myixyt commented on May 17, 2024

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.

myixyt avatar myixyt commented on May 17, 2024

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.

abdumu avatar abdumu commented on May 17, 2024

What version of laravel-visits you are using?

from laravel-visits.

bsh avatar bsh commented on May 17, 2024

"awssat/laravel-visits": "^2.0"

from laravel-visits.

myixyt avatar myixyt commented on May 17, 2024

from laravel-visits.

hedeqiang avatar hedeqiang commented on May 17, 2024
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_CLIENT=phpredis

Replace phpredis

from laravel-visits.

oiuv avatar oiuv commented on May 17, 2024

原来如此,换phpredis搞定,thanks

from laravel-visits.

abdumu avatar abdumu commented on May 17, 2024

This wasn't solved, opened again for more debugging...

from laravel-visits.

Firman95 avatar Firman95 commented on May 17, 2024

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.

abdumu avatar abdumu commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.