Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying port in base url in loaddata() request crashes app #720

Closed
dougr583r opened this issue Mar 12, 2021 · 2 comments
Closed

Specifying port in base url in loaddata() request crashes app #720

dougr583r opened this issue Mar 12, 2021 · 2 comments

Comments

@dougr583r
Copy link

If I set the base url on a loaddata call like this:

baseUrl: Uri.parse('http://localhost:8080/assets/')

I get the following error for each <img tag in the html I'm trying to load:

flutter: Error: type 'List' is not a subtype of type 'List' in type cast #0 InAppLocalhostServer.start...
package:flutter_inappwebview/src/in_app_localhost_server.dart:42
#1 InAppLocalhostServer.start...
package:flutter_inappwebview/src/in_app_localhost_server.dart:41
#2 _rootRunUnary (dart:async/zone.dart:1362:47)
#3 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
#4 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
#5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#6 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#7 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:733:19)
#8 _StreamController._add (dart:async/stream_controller.dart:607:7)
#9 _StreamController.add (dart:async/stream_controller.dart:554:5)
#10 _HttpSe<…>

This worked in earlier versions.

@pichillilorenzo
Copy link
Owner

It will be fixed with next release

@pichillilorenzo
Copy link
Owner

New version 5.2.0 with fix released

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

No branches or pull requests

2 participants