Bug 228567 - PCM: Issue with "fire an attribution request."
Summary: PCM: Issue with "fire an attribution request."
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-28 14:04 PDT by Maojie
Modified: 2021-08-19 19:05 PDT (History)
3 users (show)

See Also:


Attachments
issue with firing an attribution request (113.76 KB, image/png)
2021-07-28 14:04 PDT, Maojie
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maojie 2021-07-28 14:04:13 PDT
Created attachment 434463 [details]
issue with firing an attribution request

I'm currently doing end-to-end testing for integration with PCM. However, I'm stuck in the last step "fire an attribution request.". Currently I'm facing two issues and wonder how could I resolve them. 

[Private Click Measurement] Received error: 'MIME Type is not a JSON MIME type' for ad click attribution request.
[Private Click Measurement] Received error: '' for ad click attribution request.

Looks like errors are from https://github.com/WebKit/WebKit/blob/d25c25a5db1f4c1c822e4b382544d123b828a15f/Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp#L369-L371  

Thanks.
Comment 1 John Wilander 2021-07-28 14:50:59 PDT
Hi!

Does the eTLD+1 of your endpoint have a valid TLS certificate?
Comment 2 Maojie 2021-07-28 15:10:10 PDT
Hi John, thanks for quick reply.
The report is supposed to send to "https://www.pinterest.com/.well-known/attribution-reporting/report-attribution/" and we believe "www.pinterest.com" should have valid TLS cert.
Comment 3 Maojie 2021-07-28 15:11:37 PDT
The report path should be "https://www.pinterest.com/.well-known/private-click-measurement/report-attribution/". Sorry for the typo.
Comment 4 Maojie 2021-07-30 13:28:19 PDT
Got a different error message.

[Private Click Measurement] Received error: 'The request timed out.' for ad click attribution request.

After changing to response MIME type to "application/json", still having the same error message:

[Log] [Private Click Measurement] About to fire an attribution request.
[Error] [Private Click Measurement] Received error: 'MIME Type is not a JSON MIME type' for ad click attribution request.
[Log] [Private Click Measurement] About to fire an attribution request.
[Error] [Private Click Measurement] Received error: '' for ad click attribution request.
Comment 5 John Wilander 2021-07-30 13:57:47 PDT
(In reply to Maojie from comment #3)
> The report path should be
> "https://www.pinterest.com/.well-known/private-click-measurement/report-
> attribution/". Sorry for the typo.

PCM sends reports to the eTLD+1, in your case https://pinterest.com/.well-known/private-click-measurement/report-attribution/ without "www.".
Comment 6 Radar WebKit Bug Importer 2021-08-04 14:05:16 PDT
<rdar://problem/81532374>
Comment 7 John Wilander 2021-08-19 19:05:14 PDT
Resolving this since we’ve received no more details since 7/30.