upstash / redis-js

HTTP based Redis Client for Serverless and Edge Functions
https://docs.upstash.com/redis
MIT License
698 stars 56 forks source link

TypeError: fetch failed #1322

Closed yharaskrik closed 1 month ago

yharaskrik commented 1 month ago

When using @upstash/lock I receive TypeError: fetch failed from the @upstash/redis package.

"TypeError: fetch failed
    at node:internal/deps/undici/undici:13185:13
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async HttpClient.request (/usr/src/app/node_modules/@upstash/redis/nodejs.js:134:15)
    at async SetCommand.exec (/usr/src/app/node_modules/@upstash/redis/nodejs.js:381:31)"

I am on Fly but cannot connect with new Redis when I pass the password and url to it.

yharaskrik commented 1 month ago

Looks like the REST endpoints don't exist on Fly currently.