Skip to content

Error at getting SP.POP.TOTL #15

@marianocrosetti

Description

@marianocrosetti

I did
wb.get_series('SP.POP.TOTL', mrv=1)
And get:

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
<ipython-input-3-15e1e87a7b59> in <module>
----> 1 wb.get_series('SP.POP.TOTL', mrv=1)

~/anaconda3/lib/python3.7/site-packages/world_bank_data/indicator.py in get_series(indicator, country, id_or_value, simplify_index, **params)
     40     params['format'] = 'jsonstat'
     41 
---> 42     idx = wb_get('country', country, 'indicator', indicator, **params)
     43     _, idx = idx.popitem()
     44 

~/anaconda3/lib/python3.7/site-packages/world_bank_data/request.py in wb_get(*args, **kwargs)
     68 
     69     response = get(url=url, params=params, proxies=proxies)
---> 70     response.raise_for_status()
     71     try:
     72         data = response.json()

~/anaconda3/lib/python3.7/site-packages/requests/models.py in raise_for_status(self)
    938 
    939         if http_error_msg:
--> 940             raise HTTPError(http_error_msg, response=self)
    941 
    942     def close(self):

HTTPError: 502 Server Error: Bad Gateway for url: http://api.worldbank.org/v2/country/all/indicator/SP.POP.TOTL?mrv=1&format=jsonstat&per_page=20000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions