Skip to content

URL Filter Guardrail error #39

@pabloiea1995

Description

@pabloiea1995

I have this configuration on the URL Filter Guardrail:

{ "version": 1, "input": { "version": 1, "guardrails": [] }, "output": { "version": 1, "guardrails": [ { "name": "URL Filter", "config": { "url_allow_list": [ "https://suntropy.es" ], "allowed_schemes": [ "https://" ], "require_tld": true, "allow_subdomains": true, "block_userinfo": true } } ] } }

This is the error raised by the guardrail (the message should pass)

{"guardrail_name":"URL Filter","config":{"allowed_schemes":["https://"],"block_userinfo":true,"allow_subdomains":true,"url_allow_list":["https://suntropy.es"]},"detected":["https://suntropy.es"],"allowed":[],"blocked":["https://suntropy.es"],"blocked_reasons":["https://suntropy.es: Blocked scheme: https"],"checked_text":"{\"message\":\"La url de la herramienta de estudios solares es: https://suntropy.es\"}","stage_name":"output","media_type":"text/plain","detected_content_type":"text/plain"}

As you can see, the blocked url is inside the url_allow_list, and the block_reason blocks the https scheme that is included in the allowed_schemes

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