Skip to content

Bug: Breadcrumb throws an exception when window.fetch is passed a Request object instead of a URL string #924

@periodic

Description

@periodic

Version: 3.14.0
Browser: Chrome 56
OS: Linux
Plugins: none

When reporting exceptions in my application after upgrading from 3.10.0 I'm getting an error during reporting str.substr is not a function.

Digging into the code it looks like the problem is that Raven is logging fetches for the breadcrumbs, but it expects the first argument of the fetch to be a URL. However, it is valid for it to be a Request object. This is causing the type error because the Request object is stored in the "url" field and is expected to be a string on line 1429.

Expected behavior is that the library handle fetch breadcrumbs and report errors. :)

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