unpub
unpub copied to clipboard
fold ==null
Invalid server response:
{"error":{"message":"NoSuchMethodError: The method 'fold' was called on null.\nReceiver: null\nTried calling: fold<BytesBuilder>(Instance of '_CopyingBytesBuilder', Closure: (BytesBuilder, List
try {
var email = await _getUploaderEmail(req);
var mediaType = MediaType.parse(req.headers['content-type']);
var boundary = mediaType.parameters['boundary'];
MimeMultipart fileData;
await for (MimeMultipart part
in req.read().transform(MimeMultipartTransformer(boundary))) {
if (fileData != null) continue;
fileData = part;
}
ERR : Invalid server response:
| {"error":{"message":"NoSuchMethodError: The method 'fold' was called on null.\nReceiver: null\nTried calling: fold<BytesBuilder>(Instance of '_CopyingBytesBuilder', Closure: (BytesBuilder, List
Same as pub_server
Hi, could you try the latest version v2.0.0, and check if this issue still exists?