X Tutup
The Wayback Machine - https://web.archive.org/web/20220607142541/https://github.com/github/fetch/issues/844
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

this.append is not a function #844

Open
himmelmaus opened this issue Sep 28, 2020 · 5 comments
Open

this.append is not a function #844

himmelmaus opened this issue Sep 28, 2020 · 5 comments

Comments

@himmelmaus
Copy link

@himmelmaus himmelmaus commented Sep 28, 2020

I'm encountering this error when trying to use the latest version
image
Is this a known issue? I've attempted various rejiggings to see if I am doing something wrong but I cannot see anything - the code I'm using for the fetch is shown below:

fetch("/api/result/csv?export_number=" + encodeURIComponent(export_number), {
        method: "GET",
        credentials: "same-origin",
        headers: {
            "X-CSRFToken": event.target.dataset.csrfToken,
            "Content-Type": "application/json",
            Accept: "application/json",
        },
    })

I originally tried this without the "Content-Type" and "Accept" headers, which seem to make no difference. Any help would be appreciated as I'm stumped, thanks in advance.

ETA: This occurs both on chrome, firefox, and ie 10.

@JakeChampion JakeChampion self-assigned this Sep 29, 2020
@himmelmaus

This comment has been minimized.

@evheniyrz
Copy link

@evheniyrz evheniyrz commented Apr 30, 2021

@findoslice

try to assign the headers via next way

headers: new Headers({
        "header_name": "header_value"
            })

@JakeChampion JakeChampion removed their assignment Jul 23, 2021
@JakeChampion
Copy link
Collaborator

@JakeChampion JakeChampion commented Jul 23, 2021

Sure thing @KVROHITH098 - I'm happy to review a PR for this

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

6 participants
@JakeChampion @himmelmaus @evheniyrz and others
X Tutup