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

Problems with Global Financial Statistics #45

Open
tomwagstaff-opml opened this issue Aug 16, 2023 · 0 comments
Open

Problems with Global Financial Statistics #45

tomwagstaff-opml opened this issue Aug 16, 2023 · 0 comments

Comments

@tomwagstaff-opml
Copy link

Hello there,

I am trying to find some pretty simple data from the Global Financial Statistics: debt-to-GDP ratios for all countries. Having run imf_parameters on the GFSMAB (main aggregates and balances) dataset, I think this query should do what I want:

imf_dataset(database_id = "GFSMAB",
                        freq = "A",
                        unit_measure = "XDC_R_B1GQ",
                        ref_sector = "S13",
                        classification = "G63_F3T4")

However, it fails with the following error:

Error in `map()`:
ℹ In index: 1.
Caused by error in `` names(df) <- `*vtmp*` ``:
! attempt to set an attribute on NULL

If I exclude both unit_measure and ref_sector then the query compiles, but the API call itself fails:

Request failed [500]. Retrying in 9.8 seconds...
Error in fun(URL = "http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/GFSMAB/A....G63_F3T4",  : 
  API request failed. Status: '500', Content: 'There is an issue while retrieving the data, please check your query or contact an administrator.'

Having clicked around the IMF website, this GSF data seems pretty patchy anyway, but I don't think that explains these errors. Any help would be much appreciated.

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

1 participant