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

Currency module: better error handling #10679

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

dgirardi
Copy link
Collaborator

@dgirardi dgirardi commented Nov 1, 2023

Type of change

  • Bugfix

Description of change

This updates the logic around loading currency rates so that:

  • if they fail to load, we attempt again on the next auction
  • they take too long to load, pending bids are rejected (instead of just forgotten) when the auction times out

Other information

Fixes #10560

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

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

Looks good! One question

@@ -7,20 +7,22 @@ import {getHook} from '../src/hook.js';
import {defer} from '../src/utils/promise.js';
import {registerOrtbProcessor, REQUEST} from '../src/pbjsORTB.js';
import {timedBidResponseHook} from '../src/utils/perfMetrics.js';
import * as events from '../src/events.js';
Copy link
Collaborator

Choose a reason for hiding this comment

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

IS there any reason / benefit to change this to only import the on and off functions of events.js since those are the only bits used I think?

@Fawke Fawke merged commit 95a6107 into prebid:master Nov 13, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poor error handling when loading currency rates
4 participants