0

Context:

  • Deploying my simple index.html page works well (slow deployment/upload)
  • Updating the deployment to use SSL (surge ssl), the deployment fails.

I'm experiencing 2 errors:

ERROR 01

(venv)% surge ssl --pem ./surge.pem       

(node:64830) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
         domain: emc2pdfa.emc-sq.com
Error: socket hang up
    at TLSSocket.socketOnEnd (node:_http_client:516:23)
    at TLSSocket.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ECONNRESET'
}

ERROR 02

(venv)% surge ssl --pem ./surge.pem

(node:67301) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
         domain: emc2pdfa.emc-sq.com
undefined:1
<html><body><h1>502 Bad Gateway</h1>
^

SyntaxError: Unexpected token '<', "<html><bod"... is not valid JSON
    at JSON.parse (<anonymous>)
    at Request.<anonymous> (/Users/aviivgi/.nvm/versions/node/v21.6.0/lib/node_modules/surge/lib/middleware/ssl.js:29:24)



    at Request.emit (node:events:531:35)
    at IncomingMessage.<anonymous> (/Users/aviivgi/.nvm/versions/node/v21.6.0/lib/node_modules/surge/node_modules/request/request.js:1073:12)
    at IncomingMessage.emit (node:events:519:28)
    at Readable.read (node:internal/streams/readable:780:10)
    at flow (node:internal/streams/readable:1281:53)
    at resume_ (node:internal/streams/readable:1260:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v21.6.0

Any and all help is welcomed.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.