Posts

Showing posts with the label express

403 Response code - Request Blocked when using Cowin setu APIs

6 1 I was just trying to make covid vaccine alert using Cowin Setu API (India) in nodejs. But I am facing some strange thing, whenever I hit get request I got 403 response code from cloudfront says 'Request Blocked' but the same is working from postman as well as from browser. Please help me in this Getting this error:- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The request could not be satisfied</TITLE> </HEAD><BODY> <H1>403 ERROR</H1> <H2>The request could not be satisfied.</H2> <HR no...

NPM not installing package. Hostname/IP address doesn't match certificate's altnames:

For a solution, see below It was working yesterday, but I don't know what happened to it. NPM is not installing the package. The hostname/IP address doesn't match the certificate's altnames: Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net This is what I was trying to do: >> ROOT: } npm install up to date in 1.797s >> ROOT: } npm install express-messages npm ERR! request to https://registry.npmjs.org/express-messages failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: registry.npmjs.org. is not in the cert's altnames: DNS:a.sni.fastly.net, DNS:a.sni.global-ssl.fastly.net" npm ERR! A complete log of this run can be found in: npm ERR! /Users/prashant/.npm/_logs/2018-09-01T11_54_09_205Z-debug.log >> ROOT: } I have read all the articles/issues that I could find and also have re-installed Node.js and npm, but after that too I have the same issu...