Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bullet XHR & Axios -- this._storedUrl.startsWith is not a function at XMLHttpRequest.bulletXHROnload #565

Open
GoudekettingRM opened this issue Apr 7, 2021 · 0 comments

Comments

@GoudekettingRM
Copy link

GoudekettingRM commented Apr 7, 2021

Hi,

I just ran into an issue using bullet together with axios. I wanted to make a note of it in your repository, as I assume that it is probable that other people are also using Rails with Bullet and Axios.

Apparently, when firing an XHR with axios, this._storedUrl in bulletXHROnload is a URL Object. I'm unsure as to why this would be. However, this causes an error in your xhr script, as 'startsWith' is only available on strings.

For me, updating to the latest version of bullet with add_footer turned off 'fixed' the issue, as I do not explicitly need it. But for those who do, this might pose a problem if they want to use axios as well.

Anyway, just an FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant