aluedtke7 / shoppinglist Goto Github PK
View Code? Open in Web Editor NEWA shoppinglist app made with Flutter and PocketBase
License: MIT License
A shoppinglist app made with Flutter and PocketBase
License: MIT License
Hi,
I'm a flutter/dart newbie and last week I found out about your shoppinglist app on flutterawesome.com. I thought it was a fun and useful project so that on Monday I embarked into trying to understand your code and the architecture you've chosen.
I unzipped the file, installed it, and started to check it with AndroidStudio as an IDE connected to my mobile phone. I have installed pocketbase, which I have also been discovering... then for the past day and half I've been stuck at the login page and I was wondering if you would have any idea of what I did wrong.
From pocketbase, I've created a couple of users and collection named shoppinglist which I fed with a few articles. Navigating with pocketbase, these are associated with the following url :
http://127.0.0.1:8090/_/#/collections?collectionId=_pb_users_auth_&filter=&sort=-created
and
http://127.0.0.1:8090/_/#/collections?collectionId=3mv593ieqawcouz&filter=&sort=-created.
However, when, from the IDE, I run the app on my phone I cannot pass the login page. The error I get is
ClientException: {url: http://localhost:8090/api/collections/users/auth-with-password, isAbort: true, statusCode: 0, response: {}, originalError: ClientException with SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 41496, uri=http://localhost:8090/api/collections/users/auth-with-password}
The port number varies, but the rest of the error message is unchanged. I have not found error number list on Pocketbase so that I cannot fully identify errno = 111, while "Connection refused" is rather broad. The app login requests do reach pocket_base_prov.dart/login method but
final authData = await _pb.collection('users').authWithPassword(email, password);
does not seem to fill the variable, if I trust a set of debugPrint(); positioned before and after the corresponding line.
I guess I did not set the communication between pocketbase and the app properly. At the same time installing pocketbase is rather straightforward as there is no external host, so that I'm a bit stuck, so that I've thought about reaching to you in case you would have any suggestion.
Many Thanks & Best Wishes
PAscal
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.