我正在尝试使用Scala
命令从CURL
发送消息到松弛状态。它给出了错误的无效负载
val slackurl = "https://hooks.slack.com/services/<something here>
val cmd = Seq(
"curl",
"-d",
"testdata",
"-H",
"Content-Type: application/x-www-form-urlencoded",
"-X",
"POST",
slackurl
)
cmd.!
我收到错误消息“ invalid_payload”
或
val cmd = Seq(
"curl",
"-d",
s"@$testData",
"-H",
"Content-Type: application/x-www-form-urlencoded",
"-X",
"POST",
slackurl
)
当我尝试发送一些数据时,错误是:“ cant read from the file
”
答案 0 :(得分:0)