Skip to content

Report errors in HTTP fields for measureConversion #385

@martinthomson

Description

@martinthomson

In looking at #328, I realized that if the browser receives a field that requests conversion measurement, it does not do anything if there is an error. Any rejection of the promise that conversion measurement returns is simply ignored.

This is probably a good case for using application/problem+json. Posting that to the report URL requires that the URL be functional, which in turn means that the RFC 9651 parsing can't be the source of the error, but we can reorder processing so that the URL is the first thing we recover.

The code would also need to be restructured a little to support error reporting, because that is currently only something that happens if the entire process succeeds.

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