bcgov / bcgov/kb-uwr-tools

dev-u4-001 - Feature_Download - Error from WFS service. Status code: 502

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

during the running of the feature_download script on large data sets often the script with crash on line 119 after the allotted
attempts,

"logging.info(f"matched features {matched}")"

resulting in the error "TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'"

and the logging warning ERROR:root:Error from WFS service. Status code: 502

![Feature_download_error_status_502](https://github.com/bcgov/kb-uwr-tools/assets/118484968/37126cb3-ccd4-410f-9f0e-45ee900b3202)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the feature_download script and inspect line 119, where logging.info reports matched features. Reproduce the failure with a large data set and review the WFS 502 warning and the None value involved in the conversion. Done means the script handles the service failure without crashing after its allotted attempts, with tests or a reproducible check covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.