Questions tagged [aqueduct]
Aqueduct is an open-source, server-side framework written in Google’s Dart language.
149
questions
-1
votes
1answer
54 views
Dart Aqueduct Rest API Unit Testing: Null Safety Error
I have created a simple REST Api using aqueduct and dart and I am attempting to run unit tests. However, I get the following error when trying to do so:
Failed to load "test\example_test.dart&...
1
vote
1answer
25 views
Get user from the middleware in Aqueduct
How to expose information from an authorization middleware, such as the logged-in user to the subsequent request controllers with Aqueduct?
Eg my route is:
.route('/events/[:id]')
.link(() => ...
0
votes
1answer
47 views
What would be a good Flutter client for an Aqueduct server? [closed]
Writing my frontend app in Flutter/Dart, and my backend server using Aqueduct being written in Dart too, is there a tailored client that could e.g. reuse the models of Aqueduct?
0
votes
0answers
27 views
Aqueduct and GraphQL Subscriptions
I am building a backend for an app. I have a basic api built with Aqueduct. I want to execute my custom logic with this before processing specific requests. I want to have 1 api to manage everything ...
1
vote
0answers
27 views
Using third-parties id providers sign-in credentials to create a user in Aqueduct server
I'm trying to wrap my head around the whole Auth process as I'm building my first API/DB in Aqueduct, but I only found out on docs and other posts how to register users with email/password combination....
0
votes
1answer
20 views
How to list/delete Clients in Aqueduct auth?
I'm following the Aqueduct docs for auth and I see that a Client is added like so:
aqueduct auth add-client \
--id com.food_app.mobile \
--connect postgres://user:password@dbhost:5432/food_app
...
0
votes
0answers
46 views
%LOCALAPPDATA% Folder corrupting my Dart and Flutter projects
Backend - Dart sdk2.8 with aqueduct
Frontend Flutter with its own
internal dart SDK
The %LOCALAPPADATA% folder shows up in my root folder and dependencies are not accessible anymore. Tried to pub ...
0
votes
1answer
25 views
POST request fails with missing required Body Aqueduct + PostgreSQL
I'm building my first API with Aqueduct and a PostgreSQL db. To test my endpoint I'm using Postman on the locally running server. GET requests works as expected, but the POST request fails with ...
0
votes
1answer
18 views
Aqueduct routing behaviour unexpected results
I am trying to create a backend server with Aqueduct in dart. I am trying to create a resource controller that will deal with account issues.
routing code is like this;
router
.route("/$...
0
votes
1answer
49 views
Two questions about real time observers and Stripe on server side Dart with Aqueduct
I'm going to switch from using Firebase only for back end to using my own server using Aqueduct with a PostgreSQL db for most functionalities and keep using only Google Cloud Storage and Firebase ...
1
vote
1answer
28 views
Aqueduct ignores conroller
I have two controllers, one resource, the other normal. They are in the same thread and both must run.
I deliberately inserted a sudden return in a normal controller to make sure it was simply ignored....
0
votes
0answers
93 views
Dart Aqueduct which version to use?
Im having Dart SDK 2.10.4
Aqueduct in version 3.3.1
but for me it seems that those two don't work together well, e.g. do not connect to Postgres...
When i downgrade Dart to 2.7.2 the DB connection ...
1
vote
2answers
547 views
How to install two different version of dart for flutter and aqueduct in a macos
Currently I have dart installed with flutter, versions as below:
Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 198df796aa (2 weeks ago) • 2020-10-...
0
votes
1answer
24 views
Aqueduct template db_and_auth not rendering login form
I am working on setting up OAuth 2.0 for aqueduct and want to start with a working example. The template db_and_auth is suppose to serve this purpose.
I have followed the readme instructions and ...
0
votes
1answer
112 views
Aqueduct failed to execute db migration file
I'm trying to learn Dart and Aqueduct. I'm following the Aqueduct tutorial. Up to now everything worked ok. But when connecting to the database I get an error.
I'm using:
Windows 10
PostreSQL 13
Dart ...
0
votes
1answer
264 views
aqueduct db upgrade can't connect to database
windows 10
postgres version - 13.0
aqueduct version - 3.3.0+1
created the database and user correctly
created the migration
I can connect to database using psql.
postgresql.conf contains ...
0
votes
0answers
50 views
aqueduct db upgrade command never completes
I'm trying to make a database migration with aqueduct
First I call this command
aqueduct db generate
to create a migration. After I get a migration file I launch this command:
aqueduct db upgrade --...
0
votes
1answer
284 views
aqueduct db upgrade cannot connect to database
I have problem with connecting my aqueduct server to postgres database.
Informations and things i have done:
postgres version is 13.0
system is Windows 10
I am using AndroidStudio and internal ...
0
votes
0answers
78 views
My aqueduct application is failing to bind to the given port on heroku
I followed the official tutorial on how to deploy an Aqueduct application on Heroku (i.e. https://aqueduct.io/docs/deploy/deploy_heroku/). I was able to successfully connect to a PostgreSQL database ...
0
votes
0answers
50 views
How to deploy an aqueduct application on windows vps
I recently developed server side app and web service with Aqueduct framework & PostgreSql for my mobile app, it works fine.
But I do not know how to run it on a Windows VPS. And I did not find ...
-3
votes
2answers
116 views
Why can't I install this aqueduct
Why can't I install this aqueduct?
Although I have installed dart before as shown in the picture:
0
votes
0answers
40 views
an error running aqueduct serve in android studio
I tried to create an aqueduct project
aquduct version: :Aqueduct CLI version: 3.3.0-b1
dart version : Dart VM version: 2.8.4 (stable)
and then when typing the command aqueduct serve
I got an error . ...
0
votes
0answers
24 views
how can i upload my aqueduct project to make my API not local
how can upload my project aqueduct to the internet to see it from any WIFI and from any place
by using 000webhost or blue host ?
and i want to know the way to upload project aqueduct it is the same to ...
0
votes
1answer
131 views
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 server
[Service]
User=web
WorkingDirectory=/home/web/...
0
votes
2answers
420 views
RangeError: Invalid value: Not in inclusive range 0..1114111: -1
I am trying to study aqueduct, I created a table and tried to read a data from it. But when i am typing in cmd aqueduct db upgrade --connect postgres://postgres:pass@localhost:5432/courses
this error ...
0
votes
0answers
29 views
Many to many query joins in aqueduct (with where)
I need to filter data in a join in the aqueduct and I'm not getting :(
QUERY:
final m = Query<MenuModel>(context)
..join(set: (j) => j.acessos)
.where((w) => w.usuario.id)....
0
votes
0answers
23 views
how to make put method in api by aqueduct with list not database?
iam usin aqueduct to create api
i want to know how to update list (any list) but without data base
i want to update this list to be{"id":"1","na":"15"}
...
5
votes
4answers
599 views
Aqueduct db generate error: Bad state: NoSuchMethodError: The getter 'length' was called on null
On the system:
Dart VM version: 2.9.0-14.0.dev.flutter-2b917f5b6a (be) (Wed Jun 10 15:46:47 2020 +0000) on "windows_x64"
It is OK when run "aqueduct db generate" to create ...
0
votes
1answer
557 views
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 ...
0
votes
0answers
81 views
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 ...
3
votes
1answer
283 views
Cannot create a aqueduct project
This is the error I get when I run aqueduct create project. Aqueduct is activated.
-- Aqueduct CLI Version: 3.3.0+1
*** Uncaught error
Bad state: No element
**** Stacktrace
* #0 ...
0
votes
1answer
480 views
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 ...
0
votes
1answer
45 views
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() ...
-1
votes
1answer
30 views
Add additional properties to response
Using addResponseModifier is it possible to fetch user property and add it to the response body, before the final response?
https://pub.dev/documentation/aqueduct/latest/aqueduct/Request/...
0
votes
0answers
195 views
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.
-- ...
0
votes
1answer
40 views
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?
...
4
votes
2answers
547 views
How can I deploy aqueduct application to web hosting plan using cpanel?
HI im very new to back end and Im learning aqueduct since I know dart programming. My question is how can I deploy the aqueduct to my webserver? I have a hosting plan to a2hosting which Im currently ...
3
votes
1answer
849 views
How to downgrade Dart with Homebrew
I'm on a Mac and I upgraded to Dart 2.8 from Dart 2.7.1 by running
brew upgrade dart
as it describes in the documentation.
However, version 2.8 contains some breaking changes for the Aqueduct ...
0
votes
1answer
238 views
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 ...
0
votes
0answers
66 views
Clarification on foreign key in aqueduct
I'm playing around with relation in aqueduct postgreSQL and noticed that whenever I create a relation in a table the column is not marked as foreign key. Am I doing something wrong?
Brand table
...
1
vote
1answer
155 views
Downgrade migration version in aqueduct
Is there any way to downgrade migration version in aqueduct. Problem is if I delete migration file which is no longer needed then by running
aqueduct db generate
it will create migration version ...
1
vote
1answer
294 views
Register to aqueduct backend from Flutter frontend
I'm having a bit of difficulty with registering to aqueduct backend from my Flutter frontend
Here is my code in my frontend:
Future<void> signUp(String email, String password) async {
...
2
votes
2answers
1k views
RangeError: Invalid value: Not in range 0..1114111, inclusive: -1 when trying to use upgrade command
aqueduct db upgrade....
-- Aqueduct CLI Version: 3.3.0
-- Aqueduct project version: 3.3.0-b1
*** Uncaught error
RangeError: Invalid value: Not in range 0..1114111, inclusive: -1
**** Stacktrace
...
1
vote
1answer
43 views
Aqueduct - How to save client data without the user ID in my backend
How can I save data for a user when I don't know their user ID? I want to save it in my Aqueduct back end so I can protect and query current user data?
@Operation.post()
Future<Response> ...
2
votes
1answer
635 views
sign in The method '_mulFromInteger' was called on null
I've got sign in methode in my provider.
Future<void> signIn(
String email, String password, BuildContext context) async {
SharedPreferences sharedPreferences = await ...
2
votes
1answer
223 views
Passing user id with AuthController
I just made simple authentication app using aqueduct as a back end. I used codes from aqueduct documentation pages for login and registering. When I login with this code in backend
router
.route(...
0
votes
0answers
153 views
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 ...
6
votes
4answers
4k views
zsh: command not found: pub
I'm getting this error message when try to install aqueduct on macOS Catalina with this command.
pub global activate aqueduct
I managed to install it by putting flutter in front of it but now I ...
1
vote
0answers
87 views
Axios fetch token from dart's aqueduct
Using javascript axios am trying to fetch a token from dart's aqueduct.
https://aqueduct.io/docs/auth/controllers/ aqueduct uses oauth2 specification on the backend, and it has sample code for ...
0
votes
1answer
67 views
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....