pdupavillon / express-recaptcha

Implementation of google recaptcha v2 & V3 solutions for express.js
MIT License
128 stars 22 forks source link

JSON.parse SyntaxError #43

Open danielalmada opened 3 years ago

danielalmada commented 3 years ago

Hi,

This error caused the application to crash. Dealing with "try catch" I believe it will solve.. :) thanks!

start-app.sh: at IncomingMessage. (/opt/app-root/src/node_modules/express-recaptcha/lib/express-recaptcha.js:86:25) start-app.sh: at JSON.parse () start-app.sh: SyntaxError: Unexpected token < in JSON at position 0 start-app.sh: ^ start-app.sh: <!DOCTYPE html> start-app.sh: undefined:1