Skip to content

Runtime error when building using fetch() #34924

Open
@mnordine

Description

  • Dart SDK Version 2.1.0-dev.8.0
  • MacOS Mojave
  • Chrome 70
final fetch = WorkerGlobalScope.instance.fetch;

final response = await fetch('https://api.github.com/users/mnordine');
final json = await response.text();
print(json);

This throws a runtime error when doing webdev build, but it doesn't with webdev build --no-release

Metadata

Assignees

No one assigned

    Labels

    area-webUse area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.library-htmlweb-dart2js

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions