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

Quota error handling on bdp request #400

Merged
merged 1 commit into from
Dec 4, 2024
Merged

Conversation

RodolpheDuge
Copy link
Contributor

When doing a bdp request, we can receive an error message (quota ...)
in the result which gives the following error message:

Choice sub-element not found for name 'securityData'.

Log the received message and throw an exception to have a clearer error message.

Copy link
Member

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See one inline comment

src/bdp.cpp Outdated

namespace {
const bbg::Name RESPONSE_ERROR("responseError");
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks a little verbose and out of sync with the rest, Could this not have been done via the existing using BloombergLP::blpapi::Name; from line 45 along with

const Name Response_Error("responseError");

inside the function?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnlaing Can you maybe take a look on your end too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at what was done in getTicks/getBars but yes it is not exactly the same thing in this part of code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks better.

@johnlaing Would be great if you could give the pr a spin as well.

Copy link
Member

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good enough to me. Merging now.

Copy link
Member

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, one more thing: Can you please commit an entry to ChangeLog? The format is 'date two spaces name two spaces email' and the entries have a eight spaces (or a tab) followed by '* path/file/changed.txt: Summary of what changed' which is likely a one liner here, and have an empty line above and below. Emacs automates that with C-x 4 a if you happen to use it.

2024-11-25 Rodolphe Duge <[email protected]>

* src/bdp.c: Quota error handling on bdp request

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eddelbuettel eddelbuettel merged commit 9ffe10e into Rblp:master Dec 4, 2024
2 checks passed
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.

2 participants