sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.86k stars 136 forks source link

Surge List not working #307

Closed yashsway closed 5 years ago

yashsway commented 6 years ago

1 bash 2018-03-03 12-17-32

Surge list just shows [object Object], the data hasn't been converted properly for viewing? I can PR.

TmszLBmrv commented 6 years ago

It's been fixed. Update surge to newest version.

plumpNation commented 6 years ago

I had the same issue.

I did a npm uninstall and reinstall to upgrade. Ran surge list.

... .nvm/versions/node/v9.3.0/lib/node_modules/surge/lib/middleware/list.js:45
project.timeAgoInWords.grey

TypeError: Cannot read property 'grey' of undefined

nodejs 9.3.0 npm 5.6.0

Thanks for the tool, I've not had any issues before.

mica-eu commented 6 years ago

I had the same issue too.

root@41a1eed493e7:/# surge list

/usr/local/lib/node_modules/surge/lib/middleware/list.js:45
          project.timeAgoInWords.grey,
                                 ^

TypeError: Cannot read property 'grey' of undefined
    at /usr/local/lib/node_modules/surge/lib/middleware/list.js:45:34
    at Array.forEach (<anonymous>)
    at Request._callback (/usr/local/lib/node_modules/surge/lib/middleware/list.js:33:12)
    at Request.self.callback (/usr/local/lib/node_modules/surge/node_modules/request/request.js:186:22)
    at Request.emit (events.js:180:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/surge/node_modules/request/request.js:1163:10)
    at Request.emit (events.js:180:13)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/surge/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:272:13)
    at IncomingMessage.emit (events.js:185:15)

nodejs v9.11.1 npm 5.6.0

jonnyburch commented 6 years ago

Still getting this issue. How do I fix?

albertkim commented 6 years ago

This is definitely still an issue - is Surge still active and maintaining their product? I installed the latest using npm install -g surge

kaicianflone commented 6 years ago

@albertkim You might have a messed up global ENV if you've used Yarn and NPM. Running npm install -g surge fixed the issue for me :)

Try deleting yarn.lock / package.json.lock and rerunning the npm command

jezen commented 5 years ago

This is not still an issue. Check your surge version in your package.json or similar.

yashsway commented 5 years ago

Updated version fixes issue.

rtablada commented 5 years ago

I have completely uninstalled and reinstalled on two machines and still get the error property grey of undefined.

Version info: surge – single command web publishing. (v0.21.3)

This is on Mac OSX 10.14.6.

I'm debugging through to see if there's something I can spot that may be causing the error

rtablada commented 5 years ago

I was able to test and figured out that some projects come back from the api with no value for timeAgoInWords, platform, or cmd.

Either this is a regression in the API or the CLI should be able to gracefully handle projects that don't have those values.

sintaxi commented 5 years ago

@rtablada Interesting. can you email support@surge.sh with some more details so we can dig into this issue?

nathanaelphilip commented 5 years ago

having this issue as well – 10.14.6 – let me know what you need surge version v0.21.3

AlexM566 commented 2 years ago

Hello

I tried to login with surge command and after inserting the pass and email is giving me this: This is the 1st time using it

C:\Users\\AppData\Roaming\npm\node_modules\surge\lib\middleware\util\helpers.js:145
      if (e) throw e
             ^

I have the following error trying to login in surge:
Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
    at TLSSocket.emit (node:events:390:28)
    at TLSSocket._finishInit (node:_tls_wrap:944:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12) {
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
}

Node.js v17.3.0

I tried everything I found here but is not working... Is there any fix?