question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Only HTTP(S) protocols are supported

See original GitHub issue

Using Nextjs on vercel, using the guide as described here: https://docs.upstash.com/redis/quickstarts/vercel

(btw, these key names ‘UPSTASH_REDIS_REST_URL’, ‘UPSTASH_REDIS_REST_TOKEN’, no longer correlate with what you get in the details tab so it’s a source of confusion.)

results in the error: TypeError: Only HTTP(S) protocols are supported Both locally and on vercel.

My Nextjs was generated using the create-next-app.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
chronarkcommented, Aug 7, 2022

👍 I’ll update the docs to make it clearer and we’ll think about merging the connection options at some point.

0reactions
jesper-bylundcommented, Aug 8, 2022

@chronark The cause was dotenv serving an old version. But I figured it might be worth documenting that there was some confusion on my part.

I very much appreciate the quick help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I make an http request with fetch in node? node-fetch
Check if you've passed a url with a protocol. Error "Only HTTP(S) protocols are supported" means that there's neither HTTP nor HTTPS ......
Read more >
TypeError: Only HTTP(S) protocols are supported
TypeError : Only HTTP(S) protocols are supported. 5806 views.
Read more >
Error: Only HTTP(S) protocols are supported When Running ...
when executing await remoteFile.download({ destination: originalFile }); it should download the original file. This code is exactly the same as ...
Read more >
ApolloError: Only HTTP(S) protocols are supported (error with ...
I'm writing a unit test that requires me to send a mutation via the apollo client to my http server (created using nestjs)....
Read more >
Only HTTP(S) protocols are supported-node.js - appsloveworld
[Solved]-Tensorflow Node-js, TypeError: Only HTTP(S) protocols are supported-node.js ... I think tfjs-node is for NodeJS, and tfjs is for the web browser. You ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found