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 issue with EUR #3945

Closed
nikkoi opened this issue Jun 26, 2019 · 6 comments
Closed

Currency module issue with EUR #3945

nikkoi opened this issue Jun 26, 2019 · 6 comments
Labels

Comments

@nikkoi
Copy link

nikkoi commented Jun 26, 2019

Type of issue

Error caused by the currency module.

Description

We're seeing and error being thrown when updating from Prebid 1.4 to the latest
(2.2) using the currency module. Earlier everything worked as expected, now we see the following error:

currency-error

Removing this makes the error disappear:

"currency": { "adServerCurrency": "EUR", "granularityMultiplier": 1, "defaultRates": { "USD": { "EUR": 1.13 }} }

Also if I change the adservercurrency to USD, then everything works as expected and no errors are thrown.

Steps to reproduce

Use the latest prebid with currency module, set adservercurrency to EUR

Expected results

No errors.

Actual results

Errors.

@nikkoi
Copy link
Author

nikkoi commented Jun 26, 2019

Tested backwards, and first version where I don't get this is 2.17.0. I assume this has to do with this: #3845 , but can't seem to understand why.

@stale
Copy link

stale bot commented Jul 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 10, 2019
@snapwich
Copy link
Collaborator

Is this within a custom analytics adapter? I can't see any obvious issue that would cause that error with the public analytics adapters, but since that commit changed from using a closed over variable to a property on this that error could be caused by calling getCpmInNewCurrency directly or using as a callback somewhere. If that's the case, the calling code should be updated to bind to the bid.

@stale stale bot removed the stale label Jul 10, 2019
@snapwich
Copy link
Collaborator

@nikkoi did this pull-request fix your issue? #3996

@bretg
Copy link
Collaborator

bretg commented Jul 28, 2019

@nikkoi - as you pointed out, #3845 was the cause of this -- fixed in 2.18. May we close?

@stale
Copy link

stale bot commented Aug 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 11, 2019
@stale stale bot closed this as completed Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants