这是indexloc提供的服务,不要输入任何密码
Skip to content

How to Get Duplicate Debug Report for Private Aggregation API? #518

@Elena6918

Description

@Elena6918

After calling privateAggregation.sendHistogram() in the reportResult() in decisionUrl code, I add the below code in my server.js file to receive duplicate debug report, which should be sent immediately based on the documentation.

app.post('/.well-known/debug/private-aggregation/report-fledge', async (request, reply) => {
  privateAggregation.enableDebugMode();
  const data = {
    query: request.query,
    body: request.body,
  };
  const log = JSON.stringify(data) + '\n';
  console.log("private reporting: "+log);
  reply.code(200);
});

However, there is nothing logged in the console. The privateAggregation.sendHistogram() should be implemented correctly in my code since I no longer received worklet errors. Did I miss anything to get the duplicate debug report?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions