Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on getting Data Package from https request #390

Open
4 tasks
Mikanebu opened this issue May 9, 2017 · 0 comments
Open
4 tasks

Error on getting Data Package from https request #390

Mikanebu opened this issue May 9, 2017 · 0 comments
Milestone

Comments

@Mikanebu
Copy link

Mikanebu commented May 9, 2017

Importing Data Package using datapackage-py library comes with an error when we use SSL connection. Only works for http request. Error displayed:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/Zhiyenbayev_mirza/Desktop/R_coding_space/env3/lib/python3.5/site-packages/datapackage/resource.py", line 304, in iter
    headers=1, encoding=encoding, **options).open()
  File "/Users/Zhiyenbayev_mirza/Desktop/R_coding_space/env3/lib/python3.5/site-packages/tabulator/stream.py", line 219, in open
    self.__parser.open(self.__source, self.__encoding, self.__loader)
  File "/Users/Zhiyenbayev_mirza/Desktop/R_coding_space/env3/lib/python3.5/site-packages/tabulator/parsers/csv.py", line 55, in open
    self.__chars = loader.load(source, encoding, mode='t')
  File "/Users/Zhiyenbayev_mirza/Desktop/R_coding_space/env3/lib/python3.5/site-packages/tabulator/loaders/web.py", line 45, in load
    raise exceptions.HTTPError(str(exception))
tabulator.exceptions.HTTPError: <urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "test_pandas.py", line 5, in <module>
    storage = datapackage.push_datapackage(data_url, 'pandas')
  File "/Users/Zhiyenbayev_mirza/Desktop/R_coding_space/env3/lib/python3.5/site-packages/datapackage/pushpull.py", line 52, in push_datapackage
    data = resource.iter()
  File "/Users/Zhiyenbayev_mirza/Desktop/R_coding_space/env3/lib/python3.5/site-packages/datapackage/resource.py", line 308, in iter
    six.raise_from(ValueError(msg.format(data_path_or_url)), e)
  File "<string>", line 2, in raise_from
ValueError: Data at 'https://bits-staging.datapackaged.com/metadata/core/house-prices-us/_v/latest/data/cities-month.csv' isn't in a known tabular data format

Acceptance Criteria

  • Imports data without an error from Python2
  • Imports data without an error from Python3

Tasks

Task list for a non-epic issue

  • Check from other sources such github datasets etc.
  • Check Security requirements

Analysis

@zelima zelima added this to the Backlog milestone May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants