redis-js icon indicating copy to clipboard operation
redis-js copied to clipboard

TypeError: Only HTTP(S) protocols are supported

Open Ali-Hussein-dev opened this issue 4 years ago • 4 comments

current behavior

TypeError: Only HTTP(S) protocols are supported I am getting an error when trying to cache or getting cache while running my next app locally.

@upstash/redis : ^0.1.3 Nextjs: 12.0.0

Ali-Hussein-dev avatar Nov 11 '21 22:11 Ali-Hussein-dev

How do you configure your next app?

enesakar avatar Nov 12 '21 22:11 enesakar

@ademilter @enesakar What happens if we want to connect to a local Redis using a URL like this: ' redis://localhost:6379`?

mohamedGamalAbuGalala avatar Aug 30 '22 19:08 mohamedGamalAbuGalala

I'm in a similar position as @mohamedGamalAbuGalala use case -- my reason for connecting to a localhost endpoint is for local testing and development. If I want to run a local Redis image with Docker just for high use development tasks, is there a way to do that while still using the Upstash Redis client in my code?

robertwritescode avatar Aug 31 '22 02:08 robertwritescode

@rklubenspies there is no way to run our redis server locally, however there are some community projects to run a rest api compatible proxy: by @mna: https://github.com/mna/upstashdis by @hiett: https://github.com/hiett/serverless-redis-http

chronark avatar Aug 31 '22 05:08 chronark