Skip to content

API validation fallback and robust error parsing in callSafeBrowsingWithRetry #110

@KGFCH2

Description

@KGFCH2

Problem

The server does not correctly sanitize non-string/null URL parameters, leading to server crashes when validating URL objects. Additionally, backend Google API fetch requests do not gracefully capture custom error bodies when HTTP status codes are returned, hiding critical diagnostics.

Proposed Solution

Add strict type checks for input requests, return clean 400 validation responses, and parse text error structures safely in callSafeBrowsingWithRetry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions