Recreation model http error 403

hi
i receive this error when running recreation with sample data
invest 3.9
windows 64

Initializing…
Showing messages with level INFO and higher
2021-12-05 20:14:14,095 utils.prepare_workspace(123) INFO Writing log messages to C:\Users\drkalhor\Documents\recmodel_client_workspace\InVEST-Recreation-Model-log-2021-12-05–20_14_14.txt
2021-12-05 20:14:14,100 model._logged_target(1646) Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.recreation.recmodel_client 3.9.0:
aoi_path E:/backup/PACKAGES/INVEST/sampledata/recreation/andros_aoi.shp
cell_size 7000
compute_regression True
end_year 2014
grid_aoi True
grid_type hexagon
n_workers -1
predictor_table_path E:/backup/PACKAGES/INVEST/sampledata/recreation/predictors.csv
results_suffix
scenario_predictor_table_path E:/backup/PACKAGES/INVEST/sampledata/recreation/predictors_scenario.csv
start_year 2005
workspace_dir C:\Users\drkalhor\Documents\recmodel_client_workspace

2021-12-05 20:14:14,334 recmodel_client._validate_same_ids_and_types(1445) INFO tables validate correctly
2021-12-05 20:14:14,735 usage._log_model(245) WARNING an exception encountered when logging <HTTPError 403: ‘Forbidden’>
2021-12-05 20:14:14,973 model._logged_target(1652) ERROR Exception while executing <function execute at 0x000001B9B23770D8>
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\model.py”, line 1649, in _logged_target
File “site-packages\natcap\invest\recreation\recmodel_client.py”, line 301, in execute
File “urllib\request.py”, line 222, in urlopen
File “urllib\request.py”, line 531, in open
File “urllib\request.py”, line 641, in http_response
File “urllib\request.py”, line 569, in error
File “urllib\request.py”, line 503, in _call_chain
File “urllib\request.py”, line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 403: Forbidden
2021-12-05 20:14:14,982 model._logged_target(1655) INFO Execution finished
2021-12-05 20:14:14,989 utils.prepare_workspace(129) INFO Elapsed time: 0.89s
2021-12-05 20:14:14,991 execution.run(78) ERROR Target <function InVESTModel.execute_model.._logged_target at 0x000001B9B1C14828> failed with exception
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\execution.py”, line 68, in run
File “site-packages\natcap\invest\ui\model.py”, line 1649, in _logged_target
File “site-packages\natcap\invest\recreation\recmodel_client.py”, line 301, in execute
File “urllib\request.py”, line 222, in urlopen
File “urllib\request.py”, line 531, in open
File “urllib\request.py”, line 641, in http_response
File “urllib\request.py”, line 569, in error
File “urllib\request.py”, line 503, in _call_chain
File “urllib\request.py”, line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 403: Forbidden
2021-12-05 20:14:14,996 execution.run(83) INFO Execution finished
2021-12-05 20:14:15,519 usage._log_exit_status(191) WARNING an exception encountered when _log_exit_status HTTP Error 403: Forbidden

thanks in advance for any help

Hi @drkalhor , thanks for posting this issue. I don’t think we’ve seen this before. The Recreation model is trying to communicate with a server on google cloud, and the server is refusing to accept the request from your computer. Unfortunately the problem is likely specific to your situation. I am not able to reproduce the problem. I see there are also warnings with the same 403 error from a different server that we use to keep track of usage stats for all invest models. That server is also on google cloud.

Do you know if you are able to access any other google cloud services? Is it possible for you to try again from a different network? Maybe with a VPN?

4 Likes

thanks @dave

i tried with different vpns but still get error