surge icon indicating copy to clipboard operation
surge copied to clipboard

surge ssl returns "SyntaxError: Unexpected token < in JSON at position 0"

Open ktg5 opened this issue 3 years ago • 3 comments

Hello, I'm trying to get my SSL ticket onto my server, but when run surge ssl and give it my domain and pem file name, it keeps throwing me the error below:

undefined:1 <!DOCTYPE html> ^

SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at Request. (/usr/local/lib/node_modules/surge/lib/middleware/ssl.js:29:24) at Request.emit (events.js:203:15) at IncomingMessage. (/usr/local/lib/node_modules/surge/node_modules/request/request.js:1073:12) at IncomingMessage.emit (events.js:198:13) at IncomingMessage.Readable.read (_stream_readable.js:505:10) at flow (stream_readable.js:974:34) at resume (_stream_readable.js:955:3) at process._tickCallback (internal/process/next_tick.js:63:19)

Does anyone know what can be done to solve this?

ktg5 avatar Jun 07 '21 23:06 ktg5