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

App fails when retrieving data that is unexpected #5

Open
efcaguab opened this issue Sep 3, 2021 · 2 comments
Open

App fails when retrieving data that is unexpected #5

efcaguab opened this issue Sep 3, 2021 · 2 comments

Comments

@efcaguab
Copy link
Contributor

efcaguab commented Sep 3, 2021

This can happen when the pipeline is updated or there is something wrong with the data. To fix this the app and entering data needs to be tested before deployment

@langbart
Copy link
Member

langbart commented Sep 13, 2021

Hey @efcaguab are you referring to that kind of error below? I was trying to return the shiny app in more languages using https://appsilon.com/rapid-internationalization-of-shiny-apps-shiny-i18n-version-0-2/ and I'm getting this:

Listening on http://127.0.0.1:4549
Warning: Error in [.data.table: column(s) not found: revenue
  66: stop
  65: [.data.table
  63: FUN [/Users/lorelong/Google Drive/WorldFish/peskas.timor.portal/R/get_series_info.R#33]
  62: lapply
  61: get_series_info [/Users/lorelong/Google Drive/WorldFish/peskas.timor.portal/R/get_series_info.R#4]
  57: module [/Users/lorelong/Google Drive/WorldFish/peskas.timor.portal/R/mod_highlight_card.R#36]
  52: callModule
  51: moduleServer
  50: mod_highlight_card_server [/Users/lorelong/Google Drive/WorldFish/peskas.timor.portal/R/mod_highlight_card.R#33]
  49: server [/Users/lorelong/Google Drive/WorldFish/peskas.timor.portal/R/app_server.R#16]
Error in `[.data.table`(data, , ..cols) : column(s) not found: revenue
Warning: Error in [.data.table: column(s) not found: revenue
  [No stack trace available]

@efcaguab
Copy link
Contributor Author

Yes that's right. The problem arises due to the app trying to retrieve the latest "public" data from the development bucket but that might or might not have the revenue data into it.

Some branches in the pipeline do not have that info so the app might fail. A temporary solution is to run the pipeline in development from one of the branches that do produce that column and then generate the package data again. If the revenue code is already in the main branch (cannot remember) we can then change bucket to production instead of dev.

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

2 participants