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

PBS Adapter: call done when ajax request fails #2794

Merged
merged 3 commits into from
Jul 10, 2018
Merged

Conversation

jaiminpanchal27
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

PBS adapter was not calling done when ajax requests fails. done not getting called means auction will not close if all other bidders are back before timeout.

response => handleResponse(response, requestedBidders, bidRequests, addBidResponse, done),
{
success: response => handleResponse(response, requestedBidders, bidRequests, addBidResponse, done),
error: () => { done(); }
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this error be logged somewhere, so it shows up in debug mode?

If not: error: done should work here. No need to wrap the function in another function.

@mike-chowla mike-chowla added the needs 2nd review Core module updates require two approvals from the core team label Jul 3, 2018
Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

LGTM

@jsnellbaker jsnellbaker merged commit 9027921 into master Jul 10, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* call done when ajax request fails

* no need to wrap function here
@mkendall07 mkendall07 deleted the pbs-adapter-bugfix branch August 17, 2018 15:12
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
* call done when ajax request fails

* no need to wrap function here
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
* call done when ajax request fails

* no need to wrap function here
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* call done when ajax request fails

* no need to wrap function here
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* call done when ajax request fails

* no need to wrap function here
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
* call done when ajax request fails

* no need to wrap function here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants