Hi,
Getting these errors when trying to push a new slice created locally to the repository. Have i missed something?
[slice-machine] [api/slices] An error occured while fetching slices. Note that when stable, this should break!
[slice-machine] {
e: TypeError: res.text is not a function
at _callee2$ (/Users/thokkane/Development/projects/espoon-starwash/node_modules/slice-machine-ui/server/api/push.js:54:35)
at tryCatch (/Users/thokkane/Development/projects/espoon-starwash/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Users/thokkane/Development/projects/espoon-starwash/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.next (/Users/thokkane/Development/projects/espoon-starwash/node_modules/regenerator-runtime/runtime.js:118:21)
at asyncGeneratorStep (/Users/thokkane/Development/projects/espoon-starwash/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/Users/thokkane/Development/projects/espoon-starwash/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
}
[slice-machine] (node:68820) UnhandledPromiseRejectionWarning: RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: undefined
at ServerResponse.writeHead (_http_server.js:241:11)
at ServerResponse._implicitHeader (_http_server.js:232:8)
at write_ (_http_outgoing.js:607:9)
at ServerResponse.end (_http_outgoing.js:717:5)
at ServerResponse.send (/Users/thokkane/Development/projects/espoon-starwash/node_modules/express/lib/response.js:221:10)
at ServerResponse.json (/Users/thokkane/Development/projects/espoon-starwash/node_modules/express/lib/response.js:267:15)
at _callee6$ (/Users/thokkane/Development/projects/espoon-starwash/node_modules/slice-machine-ui/server/api/index.js:55:39)
at tryCatch (/Users/thokkane/Development/projects/espoon-starwash/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/Users/thokkane/Development/projects/espoon-starwash/node_modules/regenerator-runtime/runtime.js:293:22)
at Generator.next (/Users/thokkane/Development/projects/espoon-starwash/node_modules/regenerator-runtime/runtime.js:118:21)
(node:68820) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:68820) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.