Open NightMachinery opened 6 years ago
I get the same thing when I run medium top
, but it works when I run medium tag cats
.
medium top
fails, medium tag commandline
fails, medium tag cats
appears to work but Unhandled rejection TypeError: Cannot read property 'call' of undefined
when trying to read.
It's been two years, shouldn't @djadmin consider looking at this? :-P :-)
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
at Request._callback (/usr/local/lib/node_modules/mediumcli/lib/post.js:28:20)
at Request.self.callback (/usr/local/lib/node_modules/mediumcli/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.<anonymous> (/usr/local/lib/node_modules/mediumcli/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/mediumcli/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
It's Feb 2021 - getting the same error. Anyone figure out what/why?
"Unexpected token" –– perhaps the response from the Medium "API" has changed and the medium-cli
parser unfortunately hasn't been updated. Have you checked to see if any of the forks have?