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

HEAD requests fail (Tabris.js 2.9.0) #2275

Open
cpetrov opened this issue Oct 17, 2023 · 0 comments
Open

HEAD requests fail (Tabris.js 2.9.0) #2275

cpetrov opened this issue Oct 17, 2023 · 0 comments

Comments

@cpetrov
Copy link
Member

cpetrov commented Oct 17, 2023

Problem description

Sending a HEAD request raises an exception:

TypeError: Receiver is detached
  slice@[native code]
  _initBody@http://...:8081/node_modules/tabris/tabris.min.js:1:156754
  Response@http://...:8081/node_modules/tabris/tabris.min.js:1:159191
  @http://...:8081/node_modules/tabris/tabris.min.js:1:160299
  trigger@http://...:8081/node_modules/tabris/tabris.min.js:1:17197
  $trigger@http://...:8081/node_modules/tabris/tabris.min.js:1:27466
  _notify@http://...:8081/node_modules/tabris/tabris.min.js:1:43843
  _notify@[native code]

This works as expected with latest Tabris.js 3.

Environment

  • Tabris.js version: 2.9.0
  • Device: iPad
  • OS: iPadOS 16.6

Code snippet

fetch('https://google.de', {method: 'HEAD'})
  .then(r => console.log(r.status))
  .catch(e => console.log(e));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant