Skip to content

Commit

Permalink
openxOrtbBidAdapter: avoid error logging when response body is null (#…
Browse files Browse the repository at this point in the history
…8725)

```
prebid.js:5 Prebid openx ERROR: Bidder openx failed to interpret the server's response. Continuing without bids null TypeError: Cannot use 'in' operator to search for 'nbr' in at prebid.js:12:4571
```
Thanks @piotrj-rtbh
  • Loading branch information
kenan-gillet authored Jul 21, 2022
1 parent 2684aa3 commit f39c698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/openxOrtbBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function interpretResponse(resp, req) {
}

const respBody = resp.body;
if ('nbr' in respBody) {
if (!respBody || 'nbr' in respBody) {
return [];
}

Expand Down

0 comments on commit f39c698

Please sign in to comment.