Skip to content

🐛 Bug Report: "Connection refused" error on dart function #6945

@FabiKel

Description

@FabiKel

👟 Reproduction steps

When I try to get any information from my database I get an AppwriteException: null, Connection refused (0).

I tried it with dart runtime 2.17, 2.18 and 3.0. I tried in developement and production mode.
I deployed the functions with CLI 4.1.0

final client = Client()
      .setEndpoint('http://myEndpoint/v1')
      .setProject("myProjektID")
      .setKey(Platform.environment["API_KEY"])
      .setSelfSined();
      
final Databases databases = Databases(client);
await databases.get(databaseId: "myDatabaseID"); // error here

To test it, i gave the key every scope, but the error persists. I upgraded from 1.3.6 to 1.4.3 to 1.4.5. The error exists since the upgrade from 1.3 to 1.4.

👍 Expected behavior

Get the required data.

👎 Actual Behavior

Throws AppwriteException: null, Connection refused (0)

AppwriteException: null, Connection refused (0)
#0      ClientIO.call (package:dart_appwrite/src/client_io.dart:231)
<asynchronous suspension>
#1      Databases.get (package:dart_appwrite/services/databases.dart:71)
<asynchronous suspension>
#2      main (package:starter_template/main.dart:13)
<asynchronous suspension>
#3      Future.any.onValue (dart:async/future.dart:612)
<asynchronous suspension>

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

  • tested with Appwrite 1.4.3 and 1.4.5
  • tested with Dart Appwrite SDK 8.0.0 and 10.0.0
  • tested with Dart runtime 2.17, 2.18, 3.0

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingproduct / functionsFixes and upgrades for the Appwrite Functions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions