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

Invalid request format: "bidder" query param is required #3451

Closed
dzesm opened this issue Feb 5, 2024 · 8 comments
Closed

Invalid request format: "bidder" query param is required #3451

dzesm opened this issue Feb 5, 2024 · 8 comments
Assignees

Comments

@dzesm
Copy link

dzesm commented Feb 5, 2024

After calling cookie_sync endpoint from client side and then generating iframe / image based on type, the server calls setuid endpoint. However, even though in the payload there is obviously a bidder parameter, the response still shows an error - Invalid request format: "bidder" query param is required.

Screenshots:

payload
response

And this happens for each bidder. Do you know what could be the problem here?

@SyntaxNode
Copy link
Contributor

What is your role in the cookie sync process. Are you a publisher or a bidder?

@dzesm
Copy link
Author

dzesm commented Feb 5, 2024

We are hosting our own instance of Prebid Server to connect with different SSPs, so we're acting as publishers.

@SyntaxNode
Copy link
Contributor

Could you please share the URL generated by the cookie sync endpoint?

@dzesm
Copy link
Author

dzesm commented Feb 5, 2024

Decoded URL:

https://ads.pubmatic.com/AdServer/js/user_sync.html?bidder=pubmatic&gdpr=1&gdpr_consent=CPvaXYAPvaXYAEsACBITDPCoAP_AAE_AABCYINJD7D7FbSFCwP5_aPsUMAhXRlCAQuQgAASBA2ABQAqQIBQSkkAYFEygBCACAAAAICZBIQIMCAgACUEBQAAAIAEEAAAAJAAIIAAAgEEAAgBICAACAIAAEAAIAAAAEAAQmQhABIIASEAAhAAAIAAAAAgAAAAAAgCIACAAAAEAAAAAAAAAAQQaQD2F2K2kKFgfi-QeYoQBCujKEAhcBAAAkCBoAAgBUgQAgFIIAwAJFAAEAAAAAAQEgCQAAQABAAAIICgAAAQAAIAAAAQAAQQAABAIIAAACAAAAEAQAAIAAQAAAAIAAhEhCACQQAkIAAAAAAQAAAAAAAAAAABAAAAEAAAAIAAAAAAAAAAgAA&us_privacy=&gpp=&gpp_sid=&predirect=https://prebid.test.domain.com/setuid?bidder=pubmatic&gdpr=1&gdpr_consent=CPvaXYAPvaXYAEsACBITDPCoAP_AAE_AABCYINJD7D7FbSFCwP5_aPsUMAhXRlCAQuQgAASBA2ABQAqQIBQSkkAYFEygBCACAAAAICZBIQIMCAgACUEBQAAAIAEEAAAAJAAIIAAAgEEAAgBICAACAIAAEAAIAAAAEAAQmQhABIIASEAAhAAAIAAAAAgAAAAAAgCIACAAAAEAAAAAAAAAAQQaQD2F2K2kKFgfi-QeYoQBCujKEAhcBAAAkCBoAAgBUgQAgFIIAwAJFAAEAAAAAAQEgCQAAQABAAAIICgAAAQAAIAAAAQAAQQAABAIIAAACAAAAEAQAAIAAQAAAAIAAhEhCACQQAkIAAAAAA&us_privacy=&gpp=&gpp_sid=&f=b&uid=

Full response for this bidder:
{ "bidder": "pubmatic", "no_cookie": true, "usersync": { "url": "https://ads.pubmatic.com/AdServer/js/user_sync.html?bidder=pubmatic&gdpr=1&gdpr_consent=CPvaXYAPvaXYAEsACBITDPCoAP_AAE_AABCYINJD7D7FbSFCwP5_aPsUMAhXRlCAQuQgAASBA2ABQAqQIBQSkkAYFEygBCACAAAAICZBIQIMCAgACUEBQAAAIAEEAAAAJAAIIAAAgEEAAgBICAACAIAAEAAIAAAAEAAQmQhABIIASEAAhAAAIAAAAAgAAAAAAgCIACAAAAEAAAAAAAAAAQQaQD2F2K2kKFgfi-QeYoQBCujKEAhcBAAAkCBoAAgBUgQAgFIIAwAJFAAEAAAAAAQEgCQAAQABAAAIICgAAAQAAIAAAAQAAQQAABAIIAAACAAAAEAQAAIAAQAAAAIAAhEhCACQQAkIAAAAAAQAAAAAAAAAAABAAAAEAAAAIAAAAAAAAAAgAA&us_privacy=&gpp=&gpp_sid=&predirect=https%3A%2F%2Fprebid.test.domain.com%2Fsetuid%3Fbidder%3Dpubmatic%26gdpr%3D1%26gdpr_consent%3DCPvaXYAPvaXYAEsACBITDPCoAP_AAE_AABCYINJD7D7FbSFCwP5_aPsUMAhXRlCAQuQgAASBA2ABQAqQIBQSkkAYFEygBCACAAAAICZBIQIMCAgACUEBQAAAIAEEAAAAJAAIIAAAgEEAAgBICAACAIAAEAAIAAAAEAAQmQhABIIASEAAhAAAIAAAAAgAAAAAAgCIACAAAAEAAAAAAAAAAQQaQD2F2K2kKFgfi-QeYoQBCujKEAhcBAAAkCBoAAgBUgQAgFIIAwAJFAAEAAAAAAQEgCQAAQABAAAIICgAAAQAAIAAAAQAAQQAABAIIAAACAAAAEAQAAIAAQAAAAIAAhEhCACQQAkIAAAAAA%26us_privacy%3D%26gpp%3D%26gpp_sid%3D%26f%3Db%26uid%3D", "type": "iframe", "supportCORS": false } },

@SyntaxNode
Copy link
Contributor

SyntaxNode commented Feb 5, 2024

Thank you for the details. The redirect url is not complete. Notice it begins with "bidder" when it should begin with the public url of your Prebid Server.

There's not a lot of configuration nicely documented yet, but I recently described this setting. Please see the config docs for more info. You're also welcomed to open new issues as needed as we build out better host documentation.

You may also wish to review this PR which includes an example for getting started with Prebid Server.

@dzesm
Copy link
Author

dzesm commented Feb 6, 2024

As I can see, the redirect URL is starting with the public URL:
redirect=https://prebid.test.domain.com/setuid?bidder=pubmatic&gdpr=1...
Should we remove everything coming before and just leave the redirect?

Also, redirect is written as predirect in your bidder-config -> pubmatic.yaml file. Don't know if it is a mistake or not.

@SyntaxNode
Copy link
Contributor

Ah, gotcha. I was looking at the wrong part of the url. I'm curious what server is producing the "Invalid Request Format" error. If you posted the exact output of your cookie sync endpoint, the browser should try to redirect to prebid.test.domain.com and fail.

@dzesm
Copy link
Author

dzesm commented Feb 7, 2024

Thank you for your help. In the end, we figured there was a problem with our endpoint configuration - all query parameters after the endpoint were truncated.
After fixing the problem, cookie sync works as expected. Thanks again!

@dzesm dzesm closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants