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

Checking responseError #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

shjin404
Copy link

@shjin404 shjin404 commented Dec 1, 2019

Handling the exception like below

pdblp.pdblp:INFO:Event Type: 'PARTIAL_RESPONSE'
pdblp.pdblp:INFO:Message Received:
ReferenceDataResponse = {
    responseError = {
        source = "bbdbd2"
        code = -4001
        category = "LIMIT"
        message = "uuid: xxxxxxx, SN: xxxxx, sid: xxxxx Daily capacity reached. [nid:xxxx] "
        subcategory = "DAILY_CAPACITY_REACHED"
    }
}

For pull requests please include the following:

Notes:

To run the git diff on the upstream/master branch make sure this is set
up, e.g.

git remote add upstream git@github.com:matthewgilbert/pdblp.git
git fetch upstream

See here
for more details.

Unfortunately automated testing using TravisCI is not possible since many tests
require a valid Bloomberg connection. Please verify that
pytest pdblp/tests -v has been run and all tests are passing.

Commit

For most simple feature implementations please squash your commit to one entry
and follow the style of https://chris.beams.io/posts/git-commit/ in your
commit message, i.e.

  • Separate subject from body with a blank line
  • Limit the subject line to 50 characters
  • Capitalize the subject line
  • Do not end the subject line with a period
  • Use the imperative mood in the subject line
  • Wrap the body at 72 characters
  • Use the body to explain what and why vs. how

Handling the exception like below
```
pdblp.pdblp:INFO:Event Type: 'PARTIAL_RESPONSE'
pdblp.pdblp:INFO:Message Received:
ReferenceDataResponse = {
    responseError = {
        source = "bbdbd2"
        code = -4001
        category = "LIMIT"
        message = "uuid: xxxxxxx, SN: xxxxx, sid: xxxxx Daily capacity reached. [nid:xxxx] "
        subcategory = "DAILY_CAPACITY_REACHED"
    }
}
```
@shjin404
Copy link
Author

shjin404 commented Dec 1, 2019

@matthewgilbert I just started writing Python code in a few days ago and also new to Github workflow and I am not sure what is wrong with the Travis CI build failure. Can you quickly glance the error and see if there is anything I need to do?

@shjin404
Copy link
Author

shjin404 commented Dec 1, 2019

@matthewgilbert It seems like Python 3.7 archive is not found according to the log. Can you see if you can fix it?

�[33;1mDownloading archive: https://storage.googleapis.com/travis-ci-language-archives/python/binaries/ubuntu/14.04/x86_64/python-3.7.tar.bz2�[0m
travis_time:start:13f0cc32
�[0K$ curl -sSf --retry 5 -o python-3.7.tar.bz2 ${archive_url}
curl: (22) The requested URL returned error: 404 Not Found
travis_time:end:13f0cc32:start=1575224763792916890,finish=1575224763840117564,duration=47200674,event=configure
�[0KUnable to download 3.7 archive. The archive may not exist. Please consider a different version.

@shjin404
Copy link
Author

shjin404 commented Dec 1, 2019

Another CI pipeline fails with the error below which I believe the master branch was failing already. This pytest-dev/pytest#1688 seems to be related??

==================================== ERRORS ====================================
�[31m�[1m__________________ ERROR collecting pdblp/tests/test_pdblp.py __________________�[0m
�[1m�[31mpdblp/tests/test_pdblp.py�[0m:88: in
�[1m ifbbg = pytest.mark.skipif(pytest.config.cache.get('offline', False),�[0m
�[1m�[31mE AttributeError: module 'pytest' has no attribute 'config'�[0m
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
�[31m=============================== �[31m�[1m1 error�[0m�[31m in 0.16s�[0m�[31m ===============================�[0m
travis_time:end:0630fa56:start=1575224805702769490,finish=1575224807512339826,duration=1809570336,event=script
�[0K�[31;1mThe command "pytest pdblp/tests -v --offline" exited with 2.�[0m

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

Successfully merging this pull request may close these issues.

pdblp does not handle responseError in ReferenceDataResponse
1 participant