ropensci-archive / bomrang

:warning: ARCHIVED :warning: Australian government Bureau of Meteorology (BOM) data client for R
Other
109 stars 26 forks source link

Error on query no json #112

Closed rward3182 closed 4 years ago

rward3182 commented 4 years ago

Hi Adam I am interested in Boomerang but I have tried it a few times. I consistently get this error. Tried it on both mac and PC. Any ideas? Thanks Roger Ward

Error: A station was matched. However, a corresponding JSON file was not found at bom.gov.au

adamhsparks commented 4 years ago

Could you please provide a reproducible example for me?

thanks

rward3182 commented 4 years ago

Adam Thanks. I have installed Boomerang on both Windows and OSX and get same error message. I have attached a screenshot. I am hoping its something simple as it looks like a great product.

Specific command: Melbourne_weather <- get_current_weather("Melbourne (Olympic Park)") Roger

[image: Screen Shot 2020-01-07 at 10.54.58 am.png]

On Mon, 6 Jan 2020 at 11:30, Adam H. Sparks notifications@github.com wrote:

Could you please provide a reproducible example for me?

thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/bomrang/issues/112?email_source=notifications&email_token=AAUUIFHMMBAMVAMRCQDKESDQ4J3S7A5CNFSM4KC56OTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEDXRI#issuecomment-570964933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUUIFCVIN6EIRAT3KHPY33Q4J3S7ANCNFSM4KC56OTA .

-- Kind Regards Roger


Roger Ward 0434 315 611

PaulMelloy commented 4 years ago

Hi Roger, The code you supplied works fine for me, I am on a Windows machine. The only way I was able to reproduce the error from your code is if I disconnected my internet. Perhaps there might be a firewall or antivirus blocking the connection to the BOM servers? Does the same error happen with other locations or functions? Cheers

rward3182 commented 4 years ago

Paul Thanks for taking a look at this. The connection is working fine for package installation. see below but returns error with: Melbourne_weather <- get_current_weather("Melbourne (Olympic Park)") So I don't think it is connectivity.

[image: Screen Shot 2020-01-07 at 12.03.20 pm.png] Traceback on error Error: A station was matched. However, a corresponding JSON file was not found at bom.gov.au. 6. stop(e) 5. value[3L] 4. tryCatchOne(expr, names, parentenv, handlers[[1L]]) 3. tryCatchList(expr, classes, parentenv, handlers) 2. tryCatch({ observations.json <- jsonlite::fromJSON(txt = json_url) }, error = function(e) { e$message <- paste("\nA station was matched. ", "However, a corresponding JSON file was not found at", ... 1. get_current_weather("Melbourne (Olympic Park)")

I also tried this command. Which produced a different error message.

ag_bulletin <- get_ag_bulletin(state = "QLD") Error in xml2::xml_find_first(observations, ".//ancestor::obs") %>% xml2::xml_attr("obs-time-local") : could not find function "%>%"

Roger

On Tue, 7 Jan 2020 at 10:59, Roger Ward rward3182@gmail.com wrote:

Adam Thanks. I have installed Boomerang on both Windows and OSX and get same error message. I have attached a screenshot. I am hoping its something simple as it looks like a great product.

Specific command: Melbourne_weather <- get_current_weather("Melbourne (Olympic Park)") Roger

[image: Screen Shot 2020-01-07 at 10.54.58 am.png]

On Mon, 6 Jan 2020 at 11:30, Adam H. Sparks notifications@github.com wrote:

Could you please provide a reproducible example for me?

thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/bomrang/issues/112?email_source=notifications&email_token=AAUUIFHMMBAMVAMRCQDKESDQ4J3S7A5CNFSM4KC56OTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEDXRI#issuecomment-570964933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUUIFCVIN6EIRAT3KHPY33Q4J3S7ANCNFSM4KC56OTA .

-- Kind Regards Roger


Roger Ward 0434 315 611

-- Kind Regards Roger


Roger Ward 0434 315 611

adamhsparks commented 4 years ago

I'm also unable to duplicate either issue. Both commands work fine for me on both macOS and Linux machines using the version 0.6.0 that's currently available from CRAN and the unreleased 0.6.1 that I just submitted minutes ago.

Seeing the second error as well, there appears to be something wrong with your bomrang installation. Try reinstalling it.

rward3182 commented 4 years ago

Adam Ok. I'll give it a try. I suspect its package issue. Thanks Roger

On Tue, 7 Jan 2020 at 23:01, Adam H. Sparks notifications@github.com wrote:

I'm also unable to duplicate either issue. Both commands work fine for me on both macOS and Linux machines using the version 0.6.0 that's currently available from CRAN and the unreleased 0.6.1 that I just submitted minutes ago.

Seeing the second error as well, there appears to be something wrong with your bomrang installation. Try reinstalling it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/bomrang/issues/112?email_source=notifications&email_token=AAUUIFE2VCSRIDXZRFYAP4TQ4RVI7A5CNFSM4KC56OTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIIUW4A#issuecomment-571558768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUUIFDLECLOYX7NA42D4ZDQ4RVI7ANCNFSM4KC56OTA .

-- Kind Regards Roger


Roger Ward 0434 315 611

adamhsparks commented 4 years ago

I'm going to close this due to inactivity. Feel free to reopen it if necessary.

rward3182 commented 4 years ago

Adam Thanks for looking into this. I was away for a couple of weeks in Tasmania. I got BOMRANG up and running on my work PC when I got back from leave. The problem was a lack of three libraries.

data.table, magrittr and dplyr once I installed them it worked well. It was probably my lack of R experience but maybe worth listing them as dependencies in the doco.

But great effort on BOMRANG very useful. I work on health data linkage I am just using BOM data for testing R etc.

Thanks

Roger

On Mon, 20 Jan 2020 at 10:07, Adam H. Sparks notifications@github.com wrote:

I'm going to close this due to inactivity. Feel free to reopen it if necessary.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropensci/bomrang/issues/112?email_source=notifications&email_token=AAUUIFCQIXKST6Y3S6KDJWTQ6TMJ3A5CNFSM4KC56OTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJK7EXQ#issuecomment-576057950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUUIFCDLWIILV45EXPTIQLQ6TMJ3ANCNFSM4KC56OTA .

-- Kind Regards Roger


Roger Ward 0434 315 611

adamhsparks commented 4 years ago

Hi Roger, The packages you've listed are listed as 'Imports' in the DESCRIPTION file. When installing bomrang from CRAN (or GitHub using devtools::install_github()) they should automatically be installed if they aren't already.

Glad it's working now for you. Thanks for the feedback.

Cheers!

rward3182 commented 4 years ago

Adam Thanks. I did install from the command line Git. But still got the issue. But good to have it working. Thanks

Sent from my iPhone

On 29 Jan 2020, at 8:57 pm, Adam H. Sparks notifications@github.com wrote:

 Hi Roger, The packages you've listed are listed as 'Imports' in the DESCRIPTION file. When installing bomrang from CRAN (or GitHub using devtools::install_github()) they should automatically be installed if they aren't already.

Glad it's working now for you. Thanks for the feedback.

Cheers!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.