-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
This issue was originally filed by Denis.S.M...@gmail.com
What steps will reproduce the problem?
- MacOS X by default has IPv6 enabled on all interfaces including loopback :
ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
- Run pub build or pub get over a project which involves transformers (i.e. chrome or polymer)
What is the expected output? What do you see instead?
PUB would fail as it'll try to request urls from first (IPv6) address via http :
FINE: Loading transformers from [chrome]
IO : Created temp directory /var/folders/s1/lsm7y1kx21j2p68bxczstm380000gp/T/pub_hWgPJS
IO : Writing 175 characters to text file /var/folders/s1/lsm7y1kx21j2p68bxczstm380000gp/T/pub_hWgPJS/runInIsolate.dart.
ERR : Invalid character (at character 8)
| http://::1:62057/packages/barback/src/asset/asset_set.dart
| ^
FINE: Exception type: FormatException
ERR : dart:io _HttpRequest.requestedUri
| package:shelf/shelf_io.dart 107 _fromHttpRequest
| package:shelf/shelf_io.dart 56 handleRequest
| package:shelf/shelf_io.dart 46 serveRequests.<fn>.<fn>
| dart:isolate _RawReceivePortImpl._handleMessage
What version of the product are you using?
Dart VM version: 1.7.2 (Tue Oct 14 06:58:25 2014) on "macos_x64"
On what operating system?
OS X 10.9.4
What browser (if applicable)?
Please provide any additional information below.
The issue is resolved when you manually remove IPv6 addresses from loopback interface. But it need be properly handled by PUB itself