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

jaguar_orm RangeError: Invalid value: Not in range 0..1114111, inclusive: -1 #192

Open
zhaochh75 opened this issue Jul 28, 2020 · 1 comment

Comments

@zhaochh75
Copy link

jaguar_orm RangeError: Invalid value: Not in range 0..1114111, inclusive: -1
it's a breaking change in dart 2.8. downgrade to dart 2.7


await userBean.createTable ();

Error rangeerror: invalid value: not in range 0.. 1114111, inclusive: - 1

I found that dart SDK 2.8 is too high, and it has been downgraded to 2.7

Hope to match the higher version of dart.

https://stackoverflow.com/questions/61534696/rangeerror-invalid-value-not-in-range-0-1114111-inclusive-1-when-trying-to

@RandyWei
Copy link

RandyWei commented Nov 19, 2020

same for me!

Dart SDK version: 2.10.4 (stable) (Wed Nov 11 13:35:58 2020 +0100) on "macos_x64"
Unhandled exception: RangeError: Invalid value: Not in inclusive range 0..1114111: -1 #0 StringBuffer.writeCharCode (dart:core-patch/string_buffer_patch.dart:74:9) #1 PostgreSQLFormat.substitute (package:postgres/src/substituter.dart:83:29) #2 Query.sendSimple (package:postgres/src/query.dart:45:38) #3 _PostgreSQLConnectionStateIdle.processQuery (package:postgres/src/connection_fsm.dart:177:11) #4 _PostgreSQLConnectionStateIdle.awake (package:postgres/src/connection_fsm.dart:168:14) #5 _PostgreSQLExecutionContextMixin._enqueue (package:postgres/src/connection.dart:399:67) #6 _PostgreSQLExecutionContextMixin.execute (package:postgres/src/connection.dart:345:12) #7 PgAdapter.createTable (package:jaguar_query_postgres/src/adapter.dart:112:23) #8 _UserBean.createTable (package:jaguar_demo001/entity/user.jorm.dart:107:20) #9 main (file:///Users/wei/Documents/vscode-workspace/jaguar_demo001/bin/test.dart:12:18) <asynchronous suspension> #10 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32) #11 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

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