You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running on Firefox. Using the suggested sample code:
let client = new Client({
...
transport: new FetchTransport(fetch)
})
client.fetchSession()...
Produces the error: TypeError: 'fetch' called on an object that does not implement interface Window. I think this has to do with rebinding fetch(). Instead, the following works for me:
let client = new Client({
...
transport: new FetchTransport(fetch.bind(window))
})
client.fetchSession()...
The text was updated successfully, but these errors were encountered:
EliRibble
changed the title
TypeError: 'fetch' called on an object that does not implement interface Window [duplicate]
TypeError: 'fetch' called on an object that does not implement interface Window
Aug 27, 2024
I'm running on Firefox. Using the suggested sample code:
Produces the error:
TypeError: 'fetch' called on an object that does not implement interface Window
. I think this has to do with rebindingfetch()
. Instead, the following works for me:See this Stack Overflow for possible explanation.
The text was updated successfully, but these errors were encountered: