Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Connectivity problem between local machine and an online server where Catalyst retrieves some benchmark data. #30

Closed
ricereaper opened this issue Sep 1, 2017 · 1 comment

Comments

@ricereaper
Copy link

ricereaper commented Sep 1, 2017

Dear Catalyst Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

  • Operating System: Ubuntu 16.04 LTS guest with Win10 host via virtualbox
  • Python Version: Python 2.7.12
  • Python Bitness: 64
  • How did you install Catalyst: pip

Now that you know a little about me, let me tell you about the issue I am
having:

Description of Issue

  • What did you expect to happen?
    Running ‘’catalyst run -f buy_and_hodl.py --start 2015-3-1 --end 2017-6-28 --capital-base 100000 -o bah.pickle‘’ would successfully produce the graph as shown in the sample.

  • What happened instead?
    ERROR: Loader: failed to cache treasury data
    The program failed to obtain the treasury data from http://www.federalreserve.gov/, while the connection is intact.
    Below is the connectivity test,

* Rebuilt URL to: www.federalreserve.gov/
*   Trying 132.200.148.151...
* Connected to www.federalreserve.gov (132.200.148.151) port 80 (#0)
> GET / HTTP/1.1
> Host: www.federalreserve.gov
> User-Agent: curl/7.47.0
> Accept: */*
> 
* HTTP 1.0, assume close after body
< HTTP/1.0 301 Moved Permanently
< Location: https://www.federalreserve.gov/
* HTTP/1.0 connection set to keep alive!
< Connection: Keep-Alive
< Content-Length: 0
< 
* Connection #0 to host www.federalreserve.gov left intact

Here is how you can reproduce this issue on your machine:

Reproduction Steps

I have not been able to reproduce the issue in a different network environment. This may just be a connectivity issue of that particular network.

What steps have you taken to resolve this already?

I changed my connection environment later and the program was able to successfully obtain the data.
Another solution is downloading the required data manually of the federal reserve website.

Anything else?

I am located in China.

Sincerely,
Ricereaper

@lenak25
Copy link
Contributor

lenak25 commented Apr 8, 2018

A temporary fix submitted to address an issue concerning the benchmark data has also included applying the same approach for the treasury data.
I am closing this, @ricereaper feel free to reopen if you feel otherwise.

@lenak25 lenak25 closed this as completed Apr 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants