Skip to content

Invalid URL #1

Description

@jcubic

The action doesn't work. Give an error about an Invalid URL. No stack trace nothing.

Expected Behavior

I expect the Action to purge all images in the README

Current Behavior

It gives error

purging: https://github.com/jcubic/velvet/blob/master/README.md
Error: TypeError [ERR_INVALID_URL]: Invalid URL
Error: Invalid URL

Link to repo

https://github.com/jcubic/velvet

Possible solution

The issue is that README can contain normal noncached images added with HTML. Only Markdown images are cached.

So there is a need to check if img.attribs['data-canonical-src'] exists otherwise PURGE HTTP request with throw an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions