BDF download fails: TypeError: reject_bytes is on
https://git.nomics.world/dbnomics-fetchers/bdf-fetcher/-/jobs/236303
BDF fetcher download.py fails with
++ python3 download.py bdf-source-data
97 Traceback (most recent call last):
98 File "download.py", line 260, in <module>
99 sys.exit(main())
100 File "download.py", line 91, in main
101 datasets = api_request("/catalogue", api_key, datasets_target_file)
102 File "download.py", line 248, in api_request
103 write_json_file(filepath, response.content)
104 File "download.py", line 256, in write_json_file
105 json.dump(data, file_, ensure_ascii=False, indent=2, sort_keys=True)
106 TypeError: reject_bytes is on and '[{"name":"DIREN","description":"Companies","lastUpdate":"2020-05-15 13:15:26.0"},{"name":"STS","description":"Short-Term Statistics","lastUpdate":"2020-05-22 17:13:03.0"},{"name":"SC1","description":"Securities - France","lastUpdate":"2020-05-13 11:23:39.0"},{"name":"MIR1","description":"Interest Rates - France","lastUpdate":"2020-06-05 10:21:34.0"},{"name":"CPP","description":"Commercial Property Price","lastUpdate":"2020-04-21 11:36:16.0"},{"name":"CFT","description":"Quarterly financial accounts","lastUpdate":"2020-05-26 16:19:09.0"},{"name":"FM","description":"Financial Market Data ","lastUpdate":"2020-06-08 09:36:15.0"},{"name":"CONJ2","description":"Short-Term Surveys Regional","lastUpdate":"2020-05-19 11:45:50.0"},{"name":"SA","description":"Cptes nationaux SA","lastUpdate":"2020-05-18 11:34:44.0"},{"name":"CONJ","description":"Short-Term Surveys National","lastUpdate":"2020-06-02 12:06:27.0"},{"name":"MNA","description":"National Accounts Main Aggregates","lastUpdate":"2020-04-21 12:41:12.0"},{"name":"MIR","description":"Interest Rates - Euro area","lastUpdate":"2020-05-28 17:25:44.0"},{"name":"IVF1","description":"Investment Funds","lastUpdate":"2020-05-20 09:52:47.0"},{"name":"ESTR","description":"Euro short-term rate - €STR","lastUpdate":"2020-06-05 08:36:31.0"},{"name":"ECOFI","description":"ECOFIN : Economy and Finance","lastUpdate":"2020-06-05 11:20:21.0"},{"name":"AME","description":"Macro Economy - Euro Area","lastUpdate":"2020-04-21 11:57:03.0"},{"name":"FCI","description":"Banque de France Financial Conditions Index (BdF FCI)","lastUpdate":"2020-05-29 15:36:25.0"},{"name":"CDIS","description":"Direct Investments - CDIS - SDDS","lastUpdate":"2020-04-21 13:06:19.0"},{"name":"CFANF","description":"financial accounts of non financial companies","lastUpdate":"2020-04-21 11:57:03.0"},{"name":"CFTDC","description":"CEFIT : Loans and Deposits in French Regions","lastUpdate":"2020-05-25 16:00:11.0"},{"name":"BPM6","description":"Balance of payments- 6th manual","lastUpdate":"2020-05-07 09:00:01.0"},{"name":"EXR","description":"Exchange Rates","lastUpdate":"2020-06-08 09:36:56.0"},{"name":"CNF","description":"Financial National Accounts","lastUpdate":"2020-05-18 15:22:13.0"},{"name":"ICP","description":"Indexes of Consumer Price","lastUpdate":"2020-05-22 17:13:03.0"},{"name":"FATSO","description":"FATS Outwards","lastUpdate":"2020-04-21 12:35:35.0"},{"name":"SEC","description":"Securities - Euro area","lastUpdate":"2020-05-14 11:17:46.0"},{"name":"ESA","description":"ESA95 National Accounts","lastUpdate":"2020-04-21 11:57:03.0"},{"name":"FTID","description":"Quarterly Direct Investments","lastUpdate":"2020-04-21 12:41:12.0"},{"name":"CEFIT","description":"Loans and Deposits in French Regions","lastUpdate":"2020-04-21 12:35:35.0"},{"name":"OFC","description":"Other financial corporations survey","lastUpdate":"2020-05-18 11:34:44.0"},{"name":"BLS","description":"Bank Lending Survey","lastUpdate":"2020-05-15 13:15:26.0"},{"name":"QFAGG","description":"Quarterly financial accounts of general government","lastUpdate":"2020-04-21 12:41:12.0"},{"name":"TCN2","description":"Marketable Date Instruments - TCN2","lastUpdate":"2020-06-05 11:35:22.0"},{"name":"SAFE","description":"Access to Finance of SMEs","lastUpdate":"2020-05-15 13:15:26.0"},{"name":"DSE","description":"Debt Titles","lastUpdate":"2020-04-21 12:23:38.0"},{"name":"BSI","description":"Monetary Statistics - Euro Area","lastUpdate":"2020-06-05 11:15:21.0"},{"name":"RA_T","description":"Reserve assets template","lastUpdate":"2020-05-26 10:26:06.0"},{"name":"PME","description":"Finance of SMEs","lastUpdate":"2020-05-15 13:15:26.0"},{"name":"ENDET","description":"National Accounts - Indebtness","lastUpdate":"2020-04-21 12:16:39.0"},{"name":"ICB","description":"Insurance corporations assets and liabilities","lastUpdate":"2020-04-21 13:12:04.0"},{"name":"GST","description":"Government Statistics","lastUpdate":"2020-04-21 12:16:39.0"},{"name":"RPP","description":"Residential Property Price","lastUpdate":"2020-04-21 11:36:16.0"},{"name":"DET","description":"Holdings by non-residents","lastUpdate":"2020-04-21 11:57:03.0"},{"name":"CONS","description":"Securities Holding","lastUpdate":"2020-04-21 12:41:12.0"},{"name":"BSI1","description":"Monetary Statistics - France","lastUpdate":"2020-06-05 11:15:21.0"}]' is bytes
``
Edited by Bruno Duyé