Closed WangZhen0908 closed 2 years ago
pub version or flutter pub version: Pub 2.7.0 flutter: OS version: CentOS-7-x86_64-Everything-2009 Are you using the Chinese community mirror or a corporate firewall? yes
when exec flutter packages pub publish --server=http://192.168.70.128
Error in Client
{"error":{"message":"RangeError (index): Index out of range: no indices are valid: 0"}}
Error in server
`#0 _Uint8ArrayView.[] (dart:typed_data-patch/typed_data_patch.dart:3779:7)
It seems you are trying to use https://pub.dev/packages/pub_server . It has been discontinued and is not supported.
Environment
pub version or flutter pub version: Pub 2.7.0 flutter: OS version: CentOS-7-x86_64-Everything-2009 Are you using the Chinese community mirror or a corporate firewall? yes
Problem
when exec flutter packages pub publish --server=http://192.168.70.128
Error in Client
Error in server
`#0 _Uint8ArrayView.[] (dart:typed_data-patch/typed_data_patch.dart:3779:7)
1 InputStream.readUint16 (package:archive/src/util/input_stream.dart:206:22)
2 GZipDecoder._readHeader (package:archive/src/gzip_decoder.dart:89:29)
3 GZipDecoder.decodeBuffer (package:archive/src/gzip_decoder.dart:26:5)
4 GZipDecoder.decodeBytes (package:archive/src/gzip_decoder.dart:17:12)
5 FileRepository.upload (file:///home/wangzhen/dev/pub_server/example/src/examples/file_repository.dart:67:34)