aqueduct icon indicating copy to clipboard operation
aqueduct copied to clipboard

aqueduct document crashes

Open poznanski opened this issue 5 years ago • 2 comments

aqueduct crashes when trying to generate OpenAPI client web page

aqueduct document client -- Aqueduct CLI Version: 4.0.0-b1 -- Aqueduct project version: 4.0.0-b1 *** Uncaught error Bad state: NoSuchMethodError: The method 'map' was called on null. Receiver: null Tried calling: map<String, dynamic>(Closure: (dynamic, dynamic) => MapEntry<String, dynamic>) **** Stacktrace

  • #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
  • #1 new Configuration.fromString (package:safe_config/src/configuration.dart:23:17)
  • #2 new Configuration.fromFile (package:safe_config/src/configuration.dart:30:44)
  • #3 new BumpConfig (package:parkio_bump_server/channel.dart:37:34)
  • #4 ParkioBumpServerChannel.prepare (package:parkio_bump_server/channel.dart:12:20)
  • #5 Application.document (package:aqueduct/src/application/application.dart:165:26)
  • #6 OpenAPIBuilder.execute (data:application/dart:17:1821)
  • #7 main (data:application/dart:13:35)
  • #8 _startIsolate. (dart:isolate-patch/isolate_patch.dart:297:32)
  • #9 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

poznanski avatar Jun 28 '20 20:06 poznanski

@poznanski, after upgrading dart to the newest version I had similar problem, but during aqueduct db generate. Try to add pub run before all aqueduct commands. It's temporary solution, but works though

owczaro avatar Jul 14 '20 19:07 owczaro

after downgrading aqueduct version I got a meaningful error message about my classes, unfortunately I did not saved it. Anyway, I guess it is a problem of error reporting. If maintainers want, they can close the issue. Thanks.

poznanski avatar Jul 22 '20 21:07 poznanski