Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • hubeau hubeau
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • IN-WOP
  • hubeauhubeau
  • Issues
  • #13
Closed
Open
Issue created Sep 27, 2021 by Dorchies David@david.dorchiesOwner

Crash in get_hydrometrie_observations_tr for empty response

See reproducible example below:

library(hubeau)
params <- list(code_entite = "H0203020",
               date_debut_obs = format(Sys.Date()-3),
               grandeur_hydro = "Q")
df <- get_hydrometrie_observations_tr(params, entities = "wrong value")

The function crashes with this error message:

Error in l[sapply(l, is.null)] <- NULL : invalid subscript type 'list'

Assignee
Assign to
Time tracking