Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plumber-Tableou App Failure on Connect Marketplace Testing Instances #89

Open
ChaitaC opened this issue Dec 22, 2023 · 0 comments
Open

Comments

@ChaitaC
Copy link

ChaitaC commented Dec 22, 2023

The plumber-tableau app, which runs successfully on the Dogfood server, fails to operate on the marketplace testing instance. Can this be related to missing dependencies, firewall configurations, or other environmental factors? The error in the logs is not intuitive.

Test app code
library(plumber)
library(plumbertableau)
library(outForest)
library(dplyr)

#* @apiTitle Outlier Detection for Tableau
#* @apiDescription Detect outliers in real-time on Tableau data using a Random Forest

#* Calculate outliers on input data
#* @tableauArg sales:numeric Numeric values representing sales for a given transaction
#* @tableauArg profit:numeric Numeric values representing profit for a given transaction
#* @tableauReturn logical A vector indicating the outlier status of each original observation
#* @post /detect-outliers
function(sales, profit) {
  dat <- tibble(sales, profit)
  out <- outForest(dat)
  outlier_rows <- outliers(out) %>%
    select(row) %>%
    distinct()

  dat %>%
    mutate(row = 1:n(),
           outlier = row %in% outlier_rows$row) %>%
    pull(outlier)
}

#* @plumber
tableau_extension

The same app failed to run on the Marketplace testing instance
Screenshot 2023-12-22 at 11 56 27 AM
Screenshot 2023-12-22 at 11 56 36 AM

Error in the log

2023/12/22 10:45:01 AM: Running plumber API at http://127.0.0.1:45949
2023/12/22 10:45:01 AM: Running swagger Docs at http://127.0.0.1:45949/__docs__/
2023/12/22 10:45:01 AM: Error in run_now(check_time, all = FALSE) : 
2023/12/22 10:45:01 AM:   Not compatible with requested type: [type=list; target=raw].
2023/12/22 10:45:01 AM: Calls:  -> invokeCppCallback
2023/12/22 10:47:00 AM: [rsc-session] Received signal: interrupt
2023/12/22 10:47:00 AM: [rsc-session] Terminating subprocess with interrupt ...
2023/12/22 10:47:01 AM:
2023/12/22 10:47:01 AM:
2023/12/22 10:47:01 AM: Execution halted
2023/12/22 10:47:01 AM: Plumber API exiting ...
2023/12/22 10:47:01 AM: [rsc-session] Terminated subprocess with signal: interrupt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant