Unusual "HTTP/1.1 500 internal server errors"

Hi,
Since yesterday i have been repeatedly experiencing “HTTP/1.1 500 internal server error” messages when requesting DB-nomics data using the R package (rdb(ids = “”)) - for example: rdb(ids = c(“BEA/NIPA-T10105/A191RC-A”)).
Usually, the problem disappears after asking this same data a few times (however this is not very convenient when including such request in a longer code). I never had these issues before yesterday, even though i was then running the exact same code.
Is anyone experiencing similar difficulties?
Thanks in advance for your help
françois

Hi,
I just tried to reproduce your error (with the last version of rdbnomics):
library(rdbnomics)
rdb(ids = c("BEA/NIPA-T10105/A191RC-A"))
But it works fine for me. Do you have any other example ?

thanks ! yes, it sometimes work for me as well. the behavior does not appear deterministic, so i can’t find an example that fails systematically. let me try to find something that would fail systematically. Here’s the traceback if it helps?

Error: HTTP/1.1 500 INTERNAL SERVER ERROR

  1. stop(e)

  2. value[3L]

  3. tryCatchOne(expr, names, parentenv, handlers[[1L]])

  4. tryCatchList(expr, classes, parentenv, handlers)

  5. tryCatch({ if (userl) { if (as.numeric(R.Version()$major) >= 3) { if (as.numeric(R.Version()$minor) < 2) { …

  6. get_data(x, userl, curl_args, run = run + 1)

  7. value[3L]

  8. tryCatchOne(expr, names, parentenv, handlers[[1L]])

  9. tryCatchList(expr, classes, parentenv, handlers)

  10. tryCatch({ if (userl) { if (as.numeric(R.Version()$major) >= 3) { if (as.numeric(R.Version()$minor) < 2) { …

  11. get_data(x, userl, curl_args, run = run + 1)

  12. value[3L]

  13. tryCatchOne(expr, names, parentenv, handlers[[1L]])

  14. tryCatchList(expr, classes, parentenv, handlers)

  15. tryCatch({ if (userl) { if (as.numeric(R.Version()$major) >= 3) { if (as.numeric(R.Version()$minor) < 2) { …

  16. get_data(api_link, use_readLines, curl_config)

  17. rdb_by_api_link(api_link = link, …)

  18. rdb(ids = c(“BEA/NIPA-T10105/A191RC-A”, “BEA/NIPA-T10105/DPCERC-A”))

The below code fails systematically for me. Sorry if it’s long but that’s the only way i could get it to fail always. I’m using also using 0.4.6. I provide the sessionInfo() below. Thanks !

library(“rdbnomics”)
rdb(ids = c(“BEA/NIPA-T10105/A191RC-A”))
rdb(ids = c(“BEA/NIPA-T10105/A191RC-A”))
rdb(ids = c(“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10105/DPCERC-A”))
rdb(ids = c(“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10105/DPCERC-A”))
rdb(ids = c(“BEA/NIPA-T10105/DPCERC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/DDURRC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/DNDGRC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/DSERRC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/DGDSRC-A”,
“BEA/NIPA-T10105/DSERRC-A”,
“BEA/NIPA-T10105/A191RC-A”))
rdb(ids = c(“BEA/NIPA-T10105/A006RC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/A008RC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/Y033RC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/B009RC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/A011RC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/A014RC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/A822RC-A”,
“BEA/NIPA-T10105/A191RC-A”,
“BEA/NIPA-T10106/A191RX-A”))
rdb(ids = c(“BEA/NIPA-T10105/A191RC-Q”,
“BEA/NIPA-T10105/A019RC-Q”))
rdb(ids = c(“BEA/NIPA-T11000/A4002C-Q”,
“BEA/NIPA-T11000/A261RC-Q”))

sessionInfo()

R version 3.5.2 (2018-12-20)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.3

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] rdbnomics_0.4.6

loaded via a namespace (and not attached):
[1] compiler_3.5.2 tools_3.5.2 curl_3.3 yaml_2.2.0 data.table_1.12.0 jsonlite_1.6

Hi @fgeerolf

We had issues on our servers, indeed. I think the problems you encountered were related.

Thanks for the reporting.

We plan to improve our monitoring system to be notified quickly, when this happens.

Christophe

yes, it works perfect now. thanks
françois

Hi @cbenz
I also have 500 internal server errors from RESTful service as I remember near same time, I din’t create a issue because I suppose that you have some type of server monitor system.

For now all responds are correct.