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

[BUG] cryptoQuotes::get_fgindex does not provide data #36

Closed
kramarek opened this issue Oct 25, 2024 · 3 comments
Closed

[BUG] cryptoQuotes::get_fgindex does not provide data #36

kramarek opened this issue Oct 25, 2024 · 3 comments
Assignees
Labels
bug Something isn't working TODO A glorified shelf of stuff that needs to be done at "some point or another"

Comments

@kramarek
Copy link

As of today, get_fgindex no longer provides any data. There were no problems yesterday.

> cryptoQuotes::get_fgindex(from = as.Date("2024-01-01"), to = as.Date("2024-06-01"))
Error in `cryptoQuotes::get_fgindex()`:
! Timeout was reached: [api.alternative.me] Failed to connect to api.alternative.me port
  443 after 10001 ms: Timeout was reached
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/rlang_error>
Error in `cryptoQuotes::get_fgindex()`:
! Timeout was reached: [api.alternative.me] Failed to connect to api.alternative.me port
  443 after 10001 ms: Timeout was reached
---
Backtrace:
    ▆
 1. └─cryptoQuotes::get_fgindex(from = as.Date("2024-01-01"), to = as.Date("2024-06-01"))
 2.   └─cryptoQuotes:::GET(...)
 3.     └─base::tryCatch(...)
 4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 5.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6.           └─value[[3L]](cond)
Run rlang::last_trace(drop = FALSE) to see 2 hidden frames.

sessionInfo see attached file.
sessionInfo_2024-10-25.txt

@kramarek kramarek added the bug Something isn't working label Oct 25, 2024
@serkor1
Copy link
Owner

serkor1 commented Oct 25, 2024

Hi @kramarek,

Thank you for using {cryptoQuotes}. According to Down for everyone or just me?, the API is down for the moment. So it is not something that I can fix - and I am not aware of any news about it closing down anytime soon. I will keep monitoring the website and work on an alternative source if it has indeed permanently closed down.

Best,

@serkor1


For future reference you can use reprex directly as follows,

reprex::reprex(
  x = {
    rnorm(10)
  },
  session_info = TRUE
)

Which automatically copies relevant information to your clipboard, which you can paste directly into your issue. It provides the following output,

rnorm(10)
#>  [1] -1.73980051 -1.62149429 -0.20149430  1.01945864  0.02782968  1.16901470
#>  [7] -1.12517020 -1.25178042 -0.57944155  0.50322803

Created on 2024-10-25 with reprex v2.1.1

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.4.1 (2024-06-14)
#>  os       Zorin OS 17.2
#>  system   x86_64, linux-gnu
#>  ui       X11
#>  language en_US:en
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       Europe/Copenhagen
#>  date     2024-10-25
#>  pandoc   2.9.2.1 @ /usr/bin/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version date (UTC) lib source
#>  cli           3.6.3   2024-06-21 [1] CRAN (R 4.4.1)
#>  digest        0.6.37  2024-08-19 [1] CRAN (R 4.4.1)
#>  evaluate      0.24.0  2024-06-10 [1] CRAN (R 4.4.0)
#>  fastmap       1.2.0   2024-05-15 [1] CRAN (R 4.4.0)
#>  fs            1.6.4   2024-04-25 [1] CRAN (R 4.4.0)
#>  glue          1.7.0   2024-01-09 [1] CRAN (R 4.4.0)
#>  htmltools     0.5.8.1 2024-04-04 [1] CRAN (R 4.4.0)
#>  knitr         1.48    2024-07-07 [1] CRAN (R 4.4.1)
#>  lifecycle     1.0.4   2023-11-07 [1] CRAN (R 4.4.0)
#>  reprex        2.1.1   2024-07-06 [1] CRAN (R 4.4.1)
#>  rlang         1.1.4   2024-06-04 [1] CRAN (R 4.4.1)
#>  rmarkdown     2.28    2024-08-17 [1] CRAN (R 4.4.1)
#>  sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.4.0)
#>  withr         3.0.1   2024-07-31 [1] CRAN (R 4.4.1)
#>  xfun          0.47    2024-08-17 [1] CRAN (R 4.4.1)
#>  yaml          2.3.10  2024-07-26 [1] CRAN (R 4.4.1)
#> 
#>  [1] /home/serkan/R/x86_64-pc-linux-gnu-library/4.4
#>  [2] /usr/local/lib/R/site-library
#>  [3] /usr/lib/R/site-library
#>  [4] /usr/lib/R/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────

@serkor1 serkor1 closed this as completed Oct 25, 2024
@serkor1 serkor1 added the TODO A glorified shelf of stuff that needs to be done at "some point or another" label Oct 25, 2024
@serkor1 serkor1 pinned this issue Oct 25, 2024
@serkor1
Copy link
Owner

serkor1 commented Oct 26, 2024

Hi @kramarek,

The API is up and running again! Outage was longer than I expected, honestly. I will look into alternatives as a robustness measure. 💯

Best,

@kramarek
Copy link
Author

Hi @serkor1,
Thank you, great work. I was pleased to see this morning (9 AM CET) during testing that the API is working again.
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TODO A glorified shelf of stuff that needs to be done at "some point or another"
Projects
None yet
Development

No branches or pull requests

2 participants