Closed reediculous456 closed 2 years ago
The key element in those debug logs is this:
[10:25:08.625] ERROR: Package Managers[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Not sure when I’ll have a change to poke at this, but that’s what’s causing this to fail.
This issue has lingered with no activity, closing out. Please re-open if you feel this is in error.
Please reopen
@reediculous456 I’ve tried to replicate this a few times, but have never been able to. Are you still experiencing it with the most recent version of the workflow?
Yes, I am still experiencing this on the latest version of Alfred 4 and the latest version of this plugin, however I can now type npm connect-redi
before the search crashes
@reediculous456 I wonder if it’s some sort of rate-limiting; I can see from the debug logs that it’s completing a search for each letter you type, which means you’re hitting their API pretty rapidly, and for quite a lot of data.
As an experiment, would you try something?
Then see if the issue persists.
The issue persists with that settings change.
Here are the new logs:
Aha! Managed to reproduce this. I’ll see if I can work out a fix. Thanks for your patience!
@reediculous456 ok, I think I solved this. Version 5.1.1 should be available shortly, which includes the fix for this.
Thanks! This is resolved in 5.1.1
npm connect-redis
into alfrednpm connect-red
This issue happens with many packages at random. MacOS: 12.3.1 PHP: 8.3.1 Alfred: 4.6.5
Debug logs
``` [10:25:08.579] Package Managers[Script Filter] Queuing argument 'connect-redis' [10:25:08.620] Package Managers[Script Filter] Script with argv '(null)' finished [10:25:08.622] STDERR: Package Managers[Script Filter] PHP Warning: Undefined property: stdClass::$description in [...]/Alfred.alfredpreferences/workflows/user.workflow.A50FBF87-D010-480E-850B-7C3795388B88/src/Npm.php on line 32 [10:25:08.623] Package Managers[Script Filter] Warning: Undefined property: stdClass::$description in [...]/Alfred.alfredpreferences/workflows/user.workflow.A50FBF87-D010-480E-850B-7C3795388B88/src/Npm.php on line 32 {"items":[{"arg":"connect-redis|https:\/\/www.npmjs.com\/package\/connect-redis|connect-redis: 6.1.3","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"connect-redis","uid":"npm-connect-redis-6.1.3","valid":"yes"},{"arg":"@sailshq\/connect-redis|https:\/\/www.npmjs.com\/package\/%40sailshq%2Fconnect-redis|@sailshq\/connect-redis: 3.2.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for your Sails app.","title":"@sailshq\/connect-redis","uid":"npm-@sailshq\/connect-redis-3.2.1","valid":"yes"},{"arg":"connect-redis-crypto|https:\/\/www.npmjs.com\/package\/connect-redis-crypto|connect-redis-crypto: 4.0.5","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"connect-redis-crypto","uid":"npm-connect-redis-crypto-4.0.5","valid":"yes"},{"arg":"@scriptollc\/connect-redis|https:\/\/www.npmjs.com\/package\/%40scriptollc%2Fconnect-redis|@scriptollc\/connect-redis: 2.3.2","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"@scriptollc\/connect-redis","uid":"npm-@scriptollc\/connect-redis-2.3.2","valid":"yes"},{"arg":"connect-smart-redis|https:\/\/www.npmjs.com\/package\/connect-smart-redis|connect-smart-redis: 1.1.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Like connect-redis, but smarter.","title":"connect-smart-redis","uid":"npm-connect-smart-redis-1.1.0","valid":"yes"},{"arg":"@tadashi\/connect-redis|https:\/\/www.npmjs.com\/package\/%40tadashi%2Fconnect-redis|@tadashi\/connect-redis: 2.2.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Simplifying Redis connection","title":"@tadashi\/connect-redis","uid":"npm-@tadashi\/connect-redis-2.2.0","valid":"yes"},{"arg":"@lowdefy\/connection-redis|https:\/\/www.npmjs.com\/package\/%40lowdefy%2Fconnection-redis|@lowdefy\/connection-redis: 4.0.0-alpha.6","icon":{"path":"icon-cache\/npm.png"},"title":"@lowdefy\/connection-redis","uid":"npm-@lowdefy\/connection-redis-4.0.0-alpha.6","valid":"yes"},{"arg":"connect-redis-vctr|https:\/\/www.npmjs.com\/package\/connect-redis-vctr|connect-redis-vctr: 3.3.4","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"connect-redis-vctr","uid":"npm-connect-redis-vctr-3.3.4","valid":"yes"},{"arg":"connect-redis-session|https:\/\/www.npmjs.com\/package\/connect-redis-session|connect-redis-session: 1.0.2","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Express","title":"connect-redis-session","uid":"npm-connect-redis-session-1.0.2","valid":"yes"},{"arg":"connect-redis-sessions|https:\/\/www.npmjs.com\/package\/connect-redis-sessions|connect-redis-sessions: 2.1.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Session store using redis-sessions for Connect","title":"connect-redis-sessions","uid":"npm-connect-redis-sessions-2.1.1","valid":"yes"},{"arg":"redis-connection|https:\/\/www.npmjs.com\/package\/redis-connection|redis-connection: 5.4.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Re-use a single or pool of redis connections across several modules\/files in your app.","title":"redis-connection","uid":"npm-redis-connection-5.4.0","valid":"yes"},{"arg":"redis-url|https:\/\/www.npmjs.com\/package\/redis-url|redis-url: 1.2.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Connect to redis using a fully-qualified URL","title":"redis-url","uid":"npm-redis-url-1.2.1","valid":"yes"},{"arg":"redis-connection-pool|https:\/\/www.npmjs.com\/package\/redis-connection-pool|redis-connection-pool: 2.0.2","icon":{"path":"icon-cache\/npm.png"},"subtitle":"a redis client connection pool","title":"redis-connection-pool","uid":"npm-redis-connection-pool-2.0.2","valid":"yes"},{"arg":"redis-sessions-anywhere|https:\/\/www.npmjs.com\/package\/redis-sessions-anywhere|redis-sessions-anywhere: 1.2.8","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Use redis sessions, anywhere","title":"redis-sessions-anywhere","uid":"npm-redis-sessions-anywhere-1.2.8","valid":"yes"},{"arg":"sessionstore|https:\/\/www.npmjs.com\/package\/sessionstore|sessionstore: 1.3.7","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Sessionstore is a node.js module for multiple databases. It can be very useful if you work with express or connect.","title":"sessionstore","uid":"npm-sessionstore-1.3.7","valid":"yes"},{"arg":"redis-url-plus|https:\/\/www.npmjs.com\/package\/redis-url-plus|redis-url-plus: 0.0.3","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis Connect URL parser aligned with Redis-CLI commands","title":"redis-url-plus","uid":"npm-redis-url-plus-0.0.3","valid":"yes"},{"arg":"hapi-redis-connection|https:\/\/www.npmjs.com\/package\/hapi-redis-connection|hapi-redis-connection: 1.0.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"[![Build Status](https:\/\/travis-ci.org\/dwyl\/hapi-redis-connection.svg?branch=master)](https:\/\/travis-ci.org\/dwyl\/hapi-redis-connection) [![codecov](https:\/\/codecov.io\/gh\/dwyl\/hapi-redis-connection\/branch\/master\/graph\/badge.svg)](https:\/\/codecov.io\/gh\/dwyl","title":"hapi-redis-connection","uid":"npm-hapi-redis-connection-1.0.1","valid":"yes"},{"arg":"qcloud-connect-redis|https:\/\/www.npmjs.com\/package\/qcloud-connect-redis|qcloud-connect-redis: 4.0.4","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"qcloud-connect-redis","uid":"npm-qcloud-connect-redis-4.0.4","valid":"yes"},{"arg":"loopback-connector-redis|https:\/\/www.npmjs.com\/package\/loopback-connector-redis|loopback-connector-redis: 3.0.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"The official Redis connector for the LoopBack Framework.","title":"loopback-connector-redis","uid":"npm-loopback-connector-redis-3.0.0","valid":"yes"},{"arg":"@nsfilho\/redis-connection|https:\/\/www.npmjs.com\/package\/%40nsfilho%2Fredis-connection|@nsfilho\/redis-connection: 0.1.10","icon":{"path":"icon-cache\/npm.png"},"subtitle":"A very simple and small services to simplify process to connect a redis host or cluster and provide some sugars and environments flavors.","title":"@nsfilho\/redis-connection","uid":"npm-@nsfilho\/redis-connection-0.1.10","valid":"yes"},{"arg":"redis-memory-server|https:\/\/www.npmjs.com\/package\/redis-memory-server|redis-memory-server: 0.5.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis Server for testing. The server will allow you to connect your favorite client library to the Redis Server and run parallel integration tests isolated from each other.","title":"redis-memory-server","uid":"npm-redis-memory-server-0.5.0","valid":"yes"},{"arg":"node-redis-connection-pool|https:\/\/www.npmjs.com\/package\/node-redis-connection-pool|node-redis-connection-pool: 3.1.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Simplistic node redis connection pool ready can scale with generic-pool support","title":"node-redis-connection-pool","uid":"npm-node-redis-connection-pool-3.1.0","valid":"yes"},{"arg":"outputcache|https:\/\/www.npmjs.com\/package\/outputcache|outputcache: 5.4.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Cache api responses, react and more using redis, memcached or any other cache provider.","title":"outputcache","uid":"npm-outputcache-5.4.0","valid":"yes"},{"arg":"loopback-connector-kv-redis|https:\/\/www.npmjs.com\/package\/loopback-connector-kv-redis|loopback-connector-kv-redis: 4.0.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"The official Redis KeyValue connector for LoopBack","title":"loopback-connector-kv-redis","uid":"npm-loopback-connector-kv-redis-4.0.0","valid":"yes"},{"arg":"redis-pool-connection|https:\/\/www.npmjs.com\/package\/redis-pool-connection|redis-pool-connection: 1.4.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Re-use a single or pool of redis connections across several modules\/files in your app.","title":"redis-pool-connection","uid":"npm-redis-pool-connection-1.4.0","valid":"yes"},{"arg":"https:\/\/npms.io\/","icon":{"path":"icon-cache\/npm.png"},"subtitle":"https:\/\/npms.io","title":"Go to the website","uid":"npm-www-1652711108","valid":"yes"}]} [10:25:08.625] ERROR: Package Managers[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON: Warning: Undefined property: stdClass::$description in [...]/Alfred.alfredpreferences/workflows/user.workflow.A50FBF87-D010-480E-850B-7C3795388B88/src/Npm.php on line 32 {"items":[{"arg":"connect-redis|https:\/\/www.npmjs.com\/package\/connect-redis|connect-redis: 6.1.3","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"connect-redis","uid":"npm-connect-redis-6.1.3","valid":"yes"},{"arg":"@sailshq\/connect-redis|https:\/\/www.npmjs.com\/package\/%40sailshq%2Fconnect-redis|@sailshq\/connect-redis: 3.2.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for your Sails app.","title":"@sailshq\/connect-redis","uid":"npm-@sailshq\/connect-redis-3.2.1","valid":"yes"},{"arg":"connect-redis-crypto|https:\/\/www.npmjs.com\/package\/connect-redis-crypto|connect-redis-crypto: 4.0.5","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"connect-redis-crypto","uid":"npm-connect-redis-crypto-4.0.5","valid":"yes"},{"arg":"@scriptollc\/connect-redis|https:\/\/www.npmjs.com\/package\/%40scriptollc%2Fconnect-redis|@scriptollc\/connect-redis: 2.3.2","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"@scriptollc\/connect-redis","uid":"npm-@scriptollc\/connect-redis-2.3.2","valid":"yes"},{"arg":"connect-smart-redis|https:\/\/www.npmjs.com\/package\/connect-smart-redis|connect-smart-redis: 1.1.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Like connect-redis, but smarter.","title":"connect-smart-redis","uid":"npm-connect-smart-redis-1.1.0","valid":"yes"},{"arg":"@tadashi\/connect-redis|https:\/\/www.npmjs.com\/package\/%40tadashi%2Fconnect-redis|@tadashi\/connect-redis: 2.2.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Simplifying Redis connection","title":"@tadashi\/connect-redis","uid":"npm-@tadashi\/connect-redis-2.2.0","valid":"yes"},{"arg":"@lowdefy\/connection-redis|https:\/\/www.npmjs.com\/package\/%40lowdefy%2Fconnection-redis|@lowdefy\/connection-redis: 4.0.0-alpha.6","icon":{"path":"icon-cache\/npm.png"},"title":"@lowdefy\/connection-redis","uid":"npm-@lowdefy\/connection-redis-4.0.0-alpha.6","valid":"yes"},{"arg":"connect-redis-vctr|https:\/\/www.npmjs.com\/package\/connect-redis-vctr|connect-redis-vctr: 3.3.4","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"connect-redis-vctr","uid":"npm-connect-redis-vctr-3.3.4","valid":"yes"},{"arg":"connect-redis-session|https:\/\/www.npmjs.com\/package\/connect-redis-session|connect-redis-session: 1.0.2","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Express","title":"connect-redis-session","uid":"npm-connect-redis-session-1.0.2","valid":"yes"},{"arg":"connect-redis-sessions|https:\/\/www.npmjs.com\/package\/connect-redis-sessions|connect-redis-sessions: 2.1.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Session store using redis-sessions for Connect","title":"connect-redis-sessions","uid":"npm-connect-redis-sessions-2.1.1","valid":"yes"},{"arg":"redis-connection|https:\/\/www.npmjs.com\/package\/redis-connection|redis-connection: 5.4.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Re-use a single or pool of redis connections across several modules\/files in your app.","title":"redis-connection","uid":"npm-redis-connection-5.4.0","valid":"yes"},{"arg":"redis-url|https:\/\/www.npmjs.com\/package\/redis-url|redis-url: 1.2.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Connect to redis using a fully-qualified URL","title":"redis-url","uid":"npm-redis-url-1.2.1","valid":"yes"},{"arg":"redis-connection-pool|https:\/\/www.npmjs.com\/package\/redis-connection-pool|redis-connection-pool: 2.0.2","icon":{"path":"icon-cache\/npm.png"},"subtitle":"a redis client connection pool","title":"redis-connection-pool","uid":"npm-redis-connection-pool-2.0.2","valid":"yes"},{"arg":"redis-sessions-anywhere|https:\/\/www.npmjs.com\/package\/redis-sessions-anywhere|redis-sessions-anywhere: 1.2.8","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Use redis sessions, anywhere","title":"redis-sessions-anywhere","uid":"npm-redis-sessions-anywhere-1.2.8","valid":"yes"},{"arg":"sessionstore|https:\/\/www.npmjs.com\/package\/sessionstore|sessionstore: 1.3.7","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Sessionstore is a node.js module for multiple databases. It can be very useful if you work with express or connect.","title":"sessionstore","uid":"npm-sessionstore-1.3.7","valid":"yes"},{"arg":"redis-url-plus|https:\/\/www.npmjs.com\/package\/redis-url-plus|redis-url-plus: 0.0.3","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis Connect URL parser aligned with Redis-CLI commands","title":"redis-url-plus","uid":"npm-redis-url-plus-0.0.3","valid":"yes"},{"arg":"hapi-redis-connection|https:\/\/www.npmjs.com\/package\/hapi-redis-connection|hapi-redis-connection: 1.0.1","icon":{"path":"icon-cache\/npm.png"},"subtitle":"[![Build Status](https:\/\/travis-ci.org\/dwyl\/hapi-redis-connection.svg?branch=master)](https:\/\/travis-ci.org\/dwyl\/hapi-redis-connection) [![codecov](https:\/\/codecov.io\/gh\/dwyl\/hapi-redis-connection\/branch\/master\/graph\/badge.svg)](https:\/\/codecov.io\/gh\/dwyl","title":"hapi-redis-connection","uid":"npm-hapi-redis-connection-1.0.1","valid":"yes"},{"arg":"qcloud-connect-redis|https:\/\/www.npmjs.com\/package\/qcloud-connect-redis|qcloud-connect-redis: 4.0.4","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis session store for Connect","title":"qcloud-connect-redis","uid":"npm-qcloud-connect-redis-4.0.4","valid":"yes"},{"arg":"loopback-connector-redis|https:\/\/www.npmjs.com\/package\/loopback-connector-redis|loopback-connector-redis: 3.0.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"The official Redis connector for the LoopBack Framework.","title":"loopback-connector-redis","uid":"npm-loopback-connector-redis-3.0.0","valid":"yes"},{"arg":"@nsfilho\/redis-connection|https:\/\/www.npmjs.com\/package\/%40nsfilho%2Fredis-connection|@nsfilho\/redis-connection: 0.1.10","icon":{"path":"icon-cache\/npm.png"},"subtitle":"A very simple and small services to simplify process to connect a redis host or cluster and provide some sugars and environments flavors.","title":"@nsfilho\/redis-connection","uid":"npm-@nsfilho\/redis-connection-0.1.10","valid":"yes"},{"arg":"redis-memory-server|https:\/\/www.npmjs.com\/package\/redis-memory-server|redis-memory-server: 0.5.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Redis Server for testing. The server will allow you to connect your favorite client library to the Redis Server and run parallel integration tests isolated from each other.","title":"redis-memory-server","uid":"npm-redis-memory-server-0.5.0","valid":"yes"},{"arg":"node-redis-connection-pool|https:\/\/www.npmjs.com\/package\/node-redis-connection-pool|node-redis-connection-pool: 3.1.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Simplistic node redis connection pool ready can scale with generic-pool support","title":"node-redis-connection-pool","uid":"npm-node-redis-connection-pool-3.1.0","valid":"yes"},{"arg":"outputcache|https:\/\/www.npmjs.com\/package\/outputcache|outputcache: 5.4.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Cache api responses, react and more using redis, memcached or any other cache provider.","title":"outputcache","uid":"npm-outputcache-5.4.0","valid":"yes"},{"arg":"loopback-connector-kv-redis|https:\/\/www.npmjs.com\/package\/loopback-connector-kv-redis|loopback-connector-kv-redis: 4.0.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"The official Redis KeyValue connector for LoopBack","title":"loopback-connector-kv-redis","uid":"npm-loopback-connector-kv-redis-4.0.0","valid":"yes"},{"arg":"redis-pool-connection|https:\/\/www.npmjs.com\/package\/redis-pool-connection|redis-pool-connection: 1.4.0","icon":{"path":"icon-cache\/npm.png"},"subtitle":"Re-use a single or pool of redis connections across several modules\/files in your app.","title":"redis-pool-connection","uid":"npm-redis-pool-connection-1.4.0","valid":"yes"},{"arg":"https:\/\/npms.io\/","icon":{"path":"icon-cache\/npm.png"},"subtitle":"https:\/\/npms.io","title":"Go to the website","uid":"npm-www-1652711108","valid":"yes"}]} ```