TERR Script giving error

Hi All,

Can anyone please help me with the issue:

Trying to call Web API and passing parameters through POST.

I ran it on RGui and it worked fine there.  But I am getting error on Spotfire while running as (R Script - TERR)

 

 

Getting error from TERR:

Script:

library(httr)
result <- POST("URL",
body=list(Number=XXXXX,formation="XXXXX",stages=XXX,StageLbs=XXXXX),encode="json")

 

 

Error:

TIBCO Enterprise Runtime for R returned an error: 'Error: Value for option post (47) must be a number.'.
   at Spotfire.Dxp.Data.DataFunctions.Executors.LocalFunctionClient.OnExecuting(FunctionClient funcClient)
   at Spotfire.Dxp.Data.DataFunctions.Executors.AbstractFunctionClient.<RunFunction>d__0.MoveNext()
   at Spotfire.Dxp.Data.DataFunctions.Executors.SPlusFunctionExecutor.<ExecuteFunction>d__0.MoveNext()
   at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.<ExecuteFunction>d__6.MoveNext()
 

 

 

Thanks!

(3) Answers

Login