Dhaiwat10 / rlp-proxy

The proxy used by @dhaiwat10/react-link-preview to fetch metadata for URLs.
https://www.npmjs.com/package/@dhaiwat10/react-link-preview
34 stars 134 forks source link

Catch invalid URLs #3

Closed Dhaiwat10 closed 3 years ago

Dhaiwat10 commented 3 years ago
UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_URL]: Invalid URL: 

2021-08-25T11:26:51.270776+00:00 app[web.1]:     at onParseError (internal/url.js:279:9)

2021-08-25T11:26:51.270778+00:00 app[web.1]:     at new URL (internal/url.js:355:5)

2021-08-25T11:26:51.270778+00:00 app[web.1]:     at /app/dist/index.js:104:28

2021-08-25T11:26:51.270778+00:00 app[web.1]:     at step (/app/dist/index.js:33:23)

2021-08-25T11:26:51.270778+00:00 app[web.1]:     at Object.next (/app/dist/index.js:14:53)

2021-08-25T11:26:51.270780+00:00 app[web.1]:     at /app/dist/index.js:8:71

2021-08-25T11:26:51.270780+00:00 app[web.1]:     at new Promise (<anonymous>)

2021-08-25T11:26:51.270781+00:00 app[web.1]:     at __awaiter (/app/dist/index.js:4:12)

2021-08-25T11:26:51.270781+00:00 app[web.1]:     at /app/dist/index.js:98:45

2021-08-25T11:26:51.270789+00:00 app[web.1]:     at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)