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

In local environment apis are not working. environment: CelestEnvironment.local #158

Open
ps6067966 opened this issue Jul 11, 2024 · 3 comments

Comments

@ps6067966
Copy link

image

@ps6067966
Copy link
Author

I/System.out( 5147): Reading: celest/cork
E/flutter ( 5147): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: ClientException with SocketException: Connection timed out (OS Error: Connection timed out, errno = 110), address = 10.0.2.2, port = 51024, uri=http://10.0.2.2:7777/feed/get-user-post
E/flutter ( 5147): #0 IOClient.send (package:http/src/io_client.dart:154:7)
E/flutter ( 5147):
E/flutter ( 5147): #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)
E/flutter ( 5147):

@ps6067966
Copy link
Author

@cloud
Future<List> getUserPost({
required int userId,
}) async {
try {
final feedList =
await supabase.rest.from('feed').select().order("id", ascending: false);
List feedUserModel = [];
for (final feed in feedList) {
final feedData = FeedModel.fromJson(feed);
final userList = await supabase.rest.from('user').select().match({
"id": feedData.userId ?? 0,
});
feedUserModel.add(
FeedUserModel(
feed: feedData,
user: userList.isNotEmpty
? UserModel.fromJson(userList.first)
: null),
);
}
return feedUserModel;
} catch (e) {
print("$e");
}
return [];
}

@dnys1
Copy link
Member

dnys1 commented Oct 15, 2024

Hi @ps6067966, let us know if you're still facing this issue with v1! A lot of work has gone into stability and bug fixes so I believe this issue may be resolved for you.

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