Closed tipiirai closed 1 year ago
Ignore the above. It was a misconfiguration on my end. I managed to get things working with the fetch
command. However I get an authorization error when using the Redis import:
import { Redis } from "https://deno.land/x/upstash_redis@v1.3.2/mod.ts";
const redis = new Redis({
url: 'https://global-becoming-goat-yyyy.upstash.io',
token: 'AX7sACQgOTExY2MyOTAtO....'
})
// this throws "Unauthorized"
await redis.set('foo', 'bar')
Even when I use the same URL and token than with the fetch command.
I got the above working as well. The token was pasted wrongly. Sorry for the ramble!!
I'm following the instructions on your blog entry, but when I run the edge function locally using
netlify dev
I get the following error on the console:What could be the problem?
Thank you!