Comments (7)
@kaminoan-dev I can't seem to reproduce that.
Specifically, you can look at the example under flutter_google_places_sdk
- and launch it on web.
Both in debug and run, when you don't provider the key - you'll get the error showing up on the UI.
That can only happen if the catch
block, much like yours, is executed - since there it will assign the error that will then be shown in the UI. I tried again and it works on both debug and run modes.
And much like in your description, that example
project has dependency on flutter_google_places_sdk
rather than directly on the web dependency.
Can you make a reproducible example?
Or perhaps a gist of the differences you can make in the example, as to when the catch block does not execute?
from flutter_google_places_sdk.
(I have updated my initial post for more details)
I kept getting the same error using the example
app in the flutter_google_places_sdk
project with a clean clone of the repo. I have then done a fresh intallation of everthing (Android Studio, Flutter, Dart, the package repository, etc) on Windows, since I though it may be relate somehow to using the Linux/Ubuntu version of Chrome... and I still get those error.
As I say, I have just cloned this repository without any modifications of the code and get those errors.
from flutter_google_places_sdk.
@kaminoan-dev you mentioned you keep getting "those errors" while using the repository without any modifications.
To be clear then - you're not seeing the error on the web?
Attaching image to what is hapenning, which is what should happen.
from flutter_google_places_sdk.
Using the repository without any modifications and leaving the API_KEY = ''
I do get the same error as in you have in your screenshot. That works perfectly.
However, if it is replaced by an invalid value to force another type of error, for example API_KEY = 'DummyKeyValue'
, the low level error is not caught and the execution gets stuck.
from flutter_google_places_sdk.
This is an issue with flutter (or rather, dart).
Created ticket with flutter: flutter/flutter#97082
which in turn created ticket with dart: dart-lang/sdk#48239
from flutter_google_places_sdk.
Thank you very much. I will subscribe to those issues to follow.
from flutter_google_places_sdk.
@kaminoan-dev flutter issue closed with a comment saying it's a valid behavior.
Looking again I agree; the promise it self is never completed in javascript either (neither successfully nor with an error), so it make sense for the dart code to never complete the future either.
Closing as well.
from flutter_google_places_sdk.
Related Issues (20)
- FlutterGooglePlacesSdk::call error: UnimplementedError: initialize() has not been implemented. HOT 4
- Missing ID Field on Place Object Despite Being Listed in PlaceField Enum HOT 3
- Error saying package has missing methods HOT 2
- [BUG] PlusCode can be null HOT 1
- Flutter web deploy issue on aws HOT 1
- Places API (new) HOT 4
- Android: API_ERROR_AUTOCOMPLETE, 9011: This IP, site or mobile application is not authorized to use this API key. HOT 1
- [flutter_google_places_sdk_ios] 0.1.3 contains a breaking change. It should have be versioned as 0.2.0 HOT 4
- Searching for CITIES and ADDRESS in the same placeTypeFilter array returns no results. HOT 1
- error launching on IOS simulator linking in object file HOT 1
- Support JDK 17 HOT 6
- Web release only : crash using findAutocompletePredictions method HOT 3
- InvalidValueError if using findAutocompletePredictions with origin HOT 2
- _places.fetchPlace has work on web debug and not work in release web HOT 2
- Upgrade Google Maps dependency HOT 2
- Google Maps JavaScript API has been loaded directly without loading=async HOT 1
- Add support for Google Places (new) HOT 2
- web package could use a version bump HOT 1
- Dependencies issues after upgrading to google_maps_flutter 2.6.1 HOT 2
- Support for js ^0.7.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_google_places_sdk.