-
Notifications
You must be signed in to change notification settings - Fork 278
"RangeError: Invalid value: Not in range 0..1114111, inclusive: -1" When connecting to postgresql 12 #844
Comments
#841 helps |
if your current dart version is 2.8.x, try this:
|
Hey thank you for the reply, downgrading to dart version 2.7.2 helped by running.
I hope the error will be fixed for dart latest version 2.8.2. |
How about configing a separated dart env and aqueduct? Keep the dart installed by Homebrew, and download dart 2.7.2 SDK from https://dart.dev/tools/sdk/archive, then install aqueduct in dart 2.7.2. |
This worked for me too. I was on the master channel of Flutter and needed to downgrade. |
When this bug will be fixed? Or is it a dart problem? |
Recently dart version was updated that has broken the current library version, we will have to wait for latest version of the aqueduct library. Current version of aqueduct library (Aqueduct CLI version: 3.3.0+1) is compatible with dart version 2.7.2 . |
@weichengwu Thanks for the hint. Just a small update on that path (to include the raw, not html): $ brew install https://raw.githubusercontent.com/dart-lang/homebrew-dart/fed6de080aef54c4f1c1df732424df37cd3e5a3e/dart.rb Indeed, downgrading temporary to Dart 2.7.2 I had the database migration ( |
For me I have to switch to flutter stable to run the db migration.
On Wed, May 27, 2020 at 2:39 PM Marius Ileana ***@***.***> wrote:
@weichengwu <https://github.com/weichengwu> Thanks for the hint.
Just a small update on that path (to include the *raw*, not *html*):
$ brew install https://raw.githubusercontent.com/dart-lang/homebrew-dart/fed6de080aef54c4f1c1df732424df37cd3e5a3e/dart.rb
Indeed, downgrading temporary to Dart 2.7.2 I had the database migration (aqueduct
db upgrade --database-config ./config/db_upgrade.yaml) working.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#844 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHOOFX3A3IL7GVVLZ2MXGN3RTWCAZANCNFSM4NFUTIHQ>
.
--
Rody Davis Jr
|
If you want to use dart > 2.7.0, you can add to dependency_overrides:
postgres: 2.1.1 To use aqueduct to upgrade the database: I don't have problems to use aqueduct with recent PostgreSQL plugin. |
Today Aqueduct version You can install the CLI using And in the project's ...
dependencies:
aqueduct: ^4.0.0-b1
dev_dependencies:
test: ^1.0.0
aqueduct_test: ^2.0.0-b1 And all of these using the recently released Dart SDK |
@pratibhashali Just for the sake of keeping things clean, can you close this ticket? |
@DEVisions |
Thank you so much! :D |
Info
Description:
When trying to run this command (from Aqueduct's tutorial):
This error is showed even if I run:
In my Aqueduct project I modified
A new error again. So I tried the devisions' solution:
Well I'm going from error to error. Can you be more specific about the system requirements for your framework to work as it should? Thanks. |
I'm getting the same error, any results? |
Me Too in have the same problem ,but with i have postgres 10 |
Solved 👍 for me , i have : Flutter : 1.22.0-10.0.pre.89
dart: 2.10.0
postgres : 10
Aqueduct CLI Version: 3.3.0+1
Aqueduct project version: 3.2.1 environment:
sdk: ">=2.0.0 <3.0.0"
dependencies:
aqueduct: ^3.0.0
dev_dependencies:
test: ^1.0.0
aqueduct_test: ^1.0.0
dependency_overrides:
postgres: 2.1.1 |
I find a way to fix it
|
First off, I'm using a Dart project not a Flutter project so there are some differences in its treatment. My
Results when applying some suggestions:
Appending these lines to
Trying run the original command:
Trying run this command:
I finally succeeded but... at present I'm using FastAPI. |
Hi everyone, I also struggled quite a bit with this error but finally got it to work with this following setup. Dart needs to be installed globally, the version that comes with Flutter is just for Flutter projects(2.10): pubspec.yaml:
Hope this helps. |
This is the unique solution that worked for me. Thanks! |
thanks!!! Working in 2021. |
As stated in multiple posts, it worked for me when I added the upgraded version reference and prefixed "dart pub run" to "aqueduct db upgrade ...". But can someone explain why? Am I missing a binary path? |
dart --version
Dart VM version: 2.8.2 (stable) (Mon May 11 15:06:42 2020 +0200) on "windows_x64"
aqueduct --version
Aqueduct CLI version: 3.3.0+1
Problem:
Following this tutorial: https://www.youtube.com/watch?v=sXk9nkdSVq4
I am trying to connect to PostgreSQL using
I have an endpoint at "profile" which will retrieve the list from the database.
When I try to consume API at http://localhost:8888/profile
I get this stack trace
Can anyone help me out? What am I missing here?
Thanks,
Regards,
Sumit Sharma
The text was updated successfully, but these errors were encountered: