Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Unhandled exception: Unsupported operation: Cannot extract a file path from a http URI #4

Open
nailgilaziev opened this issue Mar 12, 2018 · 2 comments

Comments

@nailgilaziev
Copy link

when do pub run bin/server.dart
this occurs:

Unhandled exception:
Unsupported operation: Cannot extract a file path from a http URI
#0      _SimpleUri.toFilePath (dart:core/uri.dart:4561)
#1      main (http://localhost:55280/server.dart:17:46)
#2      _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#3      _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

what I need to fix, who can help?

@johnpryan
Copy link
Owner

I think a workaround can be to just run the script using the dart command:

dart bin/server.dart

@johnpryan johnpryan reopened this Mar 12, 2018
@johnpryan
Copy link
Owner

Reopening to find a better way to deal with pub's Platform.script:

http://localhost:54239/server.dart

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants