Skip to content

Raise Error when HTTPReader get 503 Response #160

@ejguan

Description

@ejguan

🐛 Describe the bug

As I was testing the https://github.com/pytorch/data/blob/main/examples/text/CC100.ipynb, it would yield Error saying the object can not be decoded. I dug a little bit and found the root cause was HTTPResponse is a 503 Error.

But, I would expect the Error/Exception should be caught by HTTPReader
https://github.com/pytorch/pytorch/blob/2431218ee4ac1d2f016188c29869d817f6e3c70c/torch/utils/data/datapipes/iter/httpreader.py#L33-L38.

Not sure if this is related to streaming option. Needs to investigate.

Versions

main

Additional Context for New Contributors

See comment below

cc: @NivekT

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions