这是indexloc提供的服务,不要输入任何密码
Skip to content

does not work with web export to itch.io #83

@lpar105

Description

@lpar105

Bug report

Describe the bug

Works in editor, not when exported to html5 and uploaded in godot.

The way to fix this is to find everywhere you are making HTTP requests in the addon, and set accept_gzip to false.

For my application I had to do this as this was the only part of the addon I was using

func push_request(httprequest : HTTPRequest) -> void:
reference()
httprequest.accept_gzip = false
httprequest.request_completed.connect(_on_task_completed.bind(httprequest))
httprequest.request(_endpoint, _headers, _method, _payload)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. setup a basic get request from a table
  2. observe it working in editor
  3. export to html5
  4. upload to itch.io and you'll see console errors

Expected behavior

continues to work when export is hosted on itch. The manual fix shared above is easy enough to implement per project so if you've experienced the same issue and found this I recommend fixing that way. Could be nice to have this documented better or some kind of feature flagging so users don't need to go into addons and edit the source

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions