Welcome to the Linux Foundation Forum!

Chaptet 8 - Single-Origin, Multi-Route Proxy, Invalid URL

I followed the code in the course and updated my app.js too look like this

'use strict'
const proxy = require('fastify-http-proxy')
module.exports = async function (fastify, opts) {
  fastify.register(proxy, {
    upstream: 'htt‌ps://news.ycombinator.com/'
  })
}

after running the app, I got this error.

TypeError [ERR_INVALID_URL]: Invalid URL: htt‌ps://news.ycombinator.com/
[fastify-cli] app crashed - waiting for file changes before starting..

any solutions for this one?

Sign In or Register to comment.