管道工 returns makeTcpServer 出错,如何解决?
Plumber returns Error in makeTcpServer, how to troubleshoot?
我正在尝试 运行 使用 plumber
的简单代码
library(plumber)
plumber::plumb("simple_function.R")$run(port = "80")
它returns错误:
Running plumber API at http://127.0.0.1:80
Running swagger Docs at http://127.0.0.1:80/__docs__/
Error in makeTcpServer(host, port, private$appWrapper$onHeaders, private$appWrapper$onBodyData, :
Not compatible with requested type: [type=character; target=integer].
今天早上运行良好。它在安装 Docker 并构建了几个容器后停止。
有什么想法吗?
将您的端口定义为数字
library(plumber)
plumber::plumb("simple_function.R")$run(port = 80)
我正在尝试 运行 使用 plumber
library(plumber)
plumber::plumb("simple_function.R")$run(port = "80")
它returns错误:
Running plumber API at http://127.0.0.1:80
Running swagger Docs at http://127.0.0.1:80/__docs__/
Error in makeTcpServer(host, port, private$appWrapper$onHeaders, private$appWrapper$onBodyData, :
Not compatible with requested type: [type=character; target=integer].
今天早上运行良好。它在安装 Docker 并构建了几个容器后停止。 有什么想法吗?
将您的端口定义为数字
library(plumber)
plumber::plumb("simple_function.R")$run(port = 80)