Questions tagged [aqueduct]

Aqueduct is an open-source, server-side framework written in Google’s Dart language.

Major Features


  1. HTTP Request Routing.
  2. Multiple CPU support, without adding complicated multi-threading logic.
  3. CORS Support.
  4. Automatic OpenAPI specification/documentation generation.
  5. OAuth 2.0 implementation.
  6. Fully-featured ORM, with clear, type- and name-safe syntax, and SQL 6. Join support. (Supports PostgreSQL by default.)
  7. Database migration tooling.
  8. Template projects for quick starts.
  9. Integration with CI tools. (Supports TravisCI by default.)
  10. Integrated testing utilities for clean and productive tests.
  11. Logging

Tutorials


Need a walkthrough? Read the tutorials. They take you through the steps of building an Aqueduct application.

Documentation


You can find the API reference here. You can find in-depth guides and tutorials here.

139 questions
0
votes
1 answer

Aqueduct server quits working after upgrading to 4.0.0

I upgraded Dart to 2.8.4 and Aqueduct to 4.0.0-b1. On the linux server I was starting the server with a daemon like this: [Unit] Description=My…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
2 answers

aqueduct : how to solve Bad state: No element error

when I followed the steps to create new project of aqueducts at Getting Started with Aqueduct I got error when I create a new project Error : C:\Users\khalifa>aqueduct create store1 -- Aqueduct CLI Version: 3.3.0+1 *** Uncaught error Bad state:…
Khalifa Alkhatri
  • 244
  • 1
  • 4
  • 20
0
votes
0 answers

Why does Dart have so many silent runtime exceptions/errors?

I have been getting very frustrated with Dart as runtime exceptions seem to fail silently. Program execution will continue after some type of failure and leave me totally stumped about what is not working and why. For example, in using aqueduct for…
Jared Green
  • 196
  • 1
  • 7
0
votes
1 answer

Cannot create Aqueduct project from command line

So I installed the aqueduct package using pub global activate aqueduct, and I added the directory of the pub bin to the Path in environment variables. However, when I try to create a new project by typing in aqueduct create , I receive…
Zisei
  • 23
  • 7
0
votes
1 answer

Struggling with type Document on seeding. There was an issue. Reason: Could not infer type of value

I have an column defined like this: @Column(nullable: true) Document openHours; // List "openHours": ["Tuesday - Sunday: 11.00 - 21.00"], In my migration file i use seed(): @override Future seed() async { const sClientSQL = ... and the json part…
0
votes
0 answers

Dart aqueduct Error: Not found: 'dart:html'

I have been using aqueduct for a simple server that if it gets HTTP request, analyze it, and send an HTTP request to other apps. However, whenever I tried to import dart:HTML, it gives an error. -- Aqueduct CLI Version: 3.3.0+1 -- Aqueduct project…
Jacob Jae
  • 1
  • 1
0
votes
1 answer

When using aqueduct is oauth appropriate to authorize access to html pages

I am serving up HTML pages with Aqueduct and I would like the authorization of accessed pages to work without setting manually the authorization header with javascript for each link. How is this done? The only way I see it is possible is to use a…
Alan
  • 1
  • 3
0
votes
1 answer

Aqueduct: IsolateSpawnException: Unable to spawn isolate

When I try to generate a migration file in Aqueduct aqueduct db generate I get the following error IsolateSpawnException: Unable to spawn isolate ... I'm running Aqueduct 3.2.1. How do I fix this?
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
0 answers

Aqueduct authentication requests {"error":"invalid_client"}

I try to set up authentication via oauth 2.0 in my aqueduct app. I have followed step by step tutorial at aqueduct.io addjusting it to my app. Unfortunately I have stuck after creating client at first authentication requests: POST…
0
votes
1 answer

Files served with Aqueduct don't have a Content-Length header

I am writing a backend for my Flutter app using Aqueduct. I have Aqueduct set up so that Nginx proxies requests to it like this: server { root /home/web/my_server/web; index index.html index.htm; server_name example.com…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
2 answers

Error: Getter not found: 'defaultType'. aqueduct , dart, vscode

I just started with Aqueduct for creating APIs. I encountered with some error while running aqueduct serve in VS Code terminal -- Aqueduct CLI Version: 3.2.1 -- Aqueduct project version: 3.3.0-b1 -- Preparing... *** Uncaught…
ajs.sonawane
  • 307
  • 3
  • 13
0
votes
1 answer

Unhandled Exception: Exception: {error: entity validation failed, reasons: [invalid input type for 'brand']}

I'm trying to pass a Json body inside a Json body using flutter. The function is as follow: Future postItem(Item item, Brand brand) async { var jsonob = jsonEncode({ 'item_code': item.itemCode, …
flutter_bee
  • 150
  • 9
0
votes
1 answer

Question about ldap in dart, can we create aqueduct API with ldap authen?

Im newbie in flutter and code, Im using Aqueduct to create API. Now i want to use ldap server to authen my app, i search about dartdap and it can run good in flutter app, but how to create an API with ldap authen in Aqueduct dart ? can sb help me
mrBlue
  • 1
  • 1
0
votes
1 answer

How to connect Dart Aqueduct API with Google Firestore?

I want to connect Aqueduct API with Google Firestore and perform Post/Get operations via API to Firestore.
0
votes
1 answer

Aqueduct framework fetch Query where by document

@Operation.get() Future getAllCoworking({@Bind.query('l') String location}) async { final query = Query(context); /*if (location != null) { query.where((x) => x.title).contains( location, …