google app engine - How to manually delete local gcloud Dart DB? -
i running simple code
db.query(sampletype).run().tolist();
and getting error. when query types don't error, other do. seems i've populated db , updated types , query won't decode. haven't tried using filter, if use lookup known entity work, using command erase sampletype
s db, stuck undesired damaged entities. how manually erase db? starters, local db reside?
here actuall error
bad state: error while decoding entity (illegal argument(s): type argument must not null., #0 key.key (package:gcloud/src/db/models.dart:22:7) #1 key.append (package:gcloud/src/db/models.dart:55:16) #2 modeldbimpl.fromdatastorekey (package:gcloud/src/db/model_db_impl.dart:65:23) #3 modelkeyproperty.decodeprimitivevalue (package:gcloud/src/db/annotations.dart:179:31) #4 listproperty.decodeprimitivevalue (package:gcloud/src/db/annotations.dart:268:65) #5 _modeldescription._decodeproperty (package:gcloud/src/db/model_db_impl.dart:427:42) #6 _modeldescription.decodeentity. (package:gcloud/src/db/model_db_impl.dart:416:22) #7 _hashmap&&_linkedhashmapmixin.foreach (dart:collection-patch/collection_patch.dart:967) #8 _modeldescription.decodeentity (package:gcloud/src/db/model_db_impl.dart:415:41) #9 fromdatastoreentity (package:gcloud/src/db/model_db_impl.dart:124:43) #10 _mapstream._handledata (dart:async/stream_pipe.dart:233) #11 _handledata (dart:async/stream_pipe.dart:170) #12 _rootrununary (dart:async/zone.dart:899) #13 _customzone.rununary (dart:async/zone.dart:801) #14 _customzone.rununaryguarded (dart:async/zone.dart:709) #15 _bufferingstreamsubscription._senddata (dart:async/stream_impl.dart:341) #16 _bufferingstreamsubscription._add (dart:async/stream_impl.dart:270) #17 _streamcontroller&&_syncstreamcontrollerdispatch._senddata (dart:async/stream_controller.dart:587) #18 _streamcontroller._add (dart:async/stream_controller.dart:462) #19 add (dart:async/stream_controller.dart:410) #20 list.foreach (dart:core-patch/growable_array.dart:254) #21 _handlepage (package:gcloud/common.dart:58:23) #22 _rootrununary (dart:async/zone.dart:899) #23 _customzone.rununary (dart:async/zone.dart:801) #24 _future._propagatetolisteners.handlevaluecallback (dart:async/future_impl.dart:496) #25 _future._propagatetolisteners (dart:async/future_impl.dart:579) #26 _future._complete (dart:async/future_impl.dart:325) #27 stream.fold. (dart:async/stream.dart:541) #28 _rootrun (dart:async/zone.dart:888) #29 _customzone.run (dart:async/zone.dart:793) #30 _customzone.runguarded (dart:async/zone.dart:701) #31 _bufferingstreamsubscription._senddone.senddone (dart:async/stream_impl.dart:390) #32 _bufferingstreamsubscription._senddone (dart:async/stream_impl.dart:399) #33 _bufferingstreamsubscription._close (dart:async/stream_impl.dart:290) #34 _forwardingstream._handledone (dart:async/stream_pipe.dart:110) #35 _handledone (dart:async/stream_pipe.dart:178) #36 _rootrun (dart:async/zone.dart:888) #37 _customzone.run (dart:async/zone.dart:793) #38 _customzone.runguarded (dart:async/zone.dart:701) #39 _bufferingstreamsubscription._senddone.senddone (dart:async/stream_impl.dart:390) #40 _bufferingstreamsubscription._senddone (dart:async/stream_impl.dart:399) #41 _delayeddone.perform (dart:async/stream_impl.dart:614) #42 _streamimplevents.handlenext (dart:async/stream_impl.dart:711) #43 _pendingevents.schedule. (dart:async/stream_impl.dart:671) #44 _rootrun (dart:async/zone.dart:888) #45 _customzone.run (dart:async/zone.dart:793) #46 _customzone.runguarded (dart:async/zone.dart:701) #47 _customzone.bindcallback. (dart:async/zone.dart:726) #48 _rootrun (dart:async/zone.dart:892) #49 _customzone.run (dart:async/zone.dart:793) #50 _customzone.runguarded (dart:async/zone.dart:701) #51 _customzone.bindcallback. (dart:async/zone.dart:726) #52 _asyncruncallbackloop (dart:async/schedule_microtask.dart:41) #53 _asyncruncallback (dart:async/schedule_microtask.dart:48) #54 _runpendingimmediatecallback (dart:isolate-patch/isolate_patch.dart:84) #55 _rawreceiveportimpl._handlemessage (dart:isolate-patch/isolate_patch.dart:131) ). package:gcloud/src/db/model_db_impl.dart 126:7 fromdatastoreentity dart:core list.foreach package:gcloud/common.dart 58:23 _handlepage dart:isolate _rawreceiveportimpl._handlemessage #7 _hashmap&&_linkedhashmapmixin.foreach (dart:collection-patch/collection_patch.dart:967) #8 _modeldescription.decodeentity (package:gcloud/src/db/model_db_impl.dart:415:41) #9 fromdatastoreentity (package:gcloud/src/db/model_db_impl.dart:124:43) #10 _mapstream._handledata (dart:async/stream_pipe.dart:233) #11 _handledata (dart:async/stream_pipe.dart:170) #12 _rootrununary (dart:async/zone.dart:899) #13 _customzone.rununary (dart:async/zone.dart:801) #14 _customzone.rununaryguarded (dart:async/zone.dart:709) #15 _bufferingstreamsubscription._senddata (dart:async/stream_impl.dart:341) #16 _bufferingstreamsubscription._add (dart:async/stream_impl.dart:270) #17 _streamcontroller&&_syncstreamcontrollerdispatch._senddata (dart:async/stream_controller.dart:587) #18 _streamcontroller._add (dart:async/stream_controller.dart:462) #19 add (dart:async/stream_controller.dart:410) #20 list.foreach (dart:core-patch/growable_array.dart:254) #21 _handlepage (package:gcloud/common.dart:58:23) #22 _rootrununary (dart:async/zone.dart:899) #23 _customzone.rununary (dart:async/zone.dart:801) #24 _future._propagatetolisteners.handlevaluecallback (dart:async/future_impl.dart:496) #25 _future._propagatetolisteners (dart:async/future_impl.dart:579) #26 _future._complete (dart:async/future_impl.dart:325) #27 stream.fold. (dart:async/stream.dart:541) #28 _rootrun (dart:async/zone.dart:888) #29 _customzone.run (dart:async/zone.dart:793) #30 _customzone.runguarded (dart:async/zone.dart:701) #31 _bufferingstreamsubscription._senddone.senddone (dart:async/stream_impl.dart:390) #32 _bufferingstreamsubscription._senddone (dart:async/stream_impl.dart:399) #33 _bufferingstreamsubscription._close (dart:async/stream_impl.dart:290) #34 _forwardingstream._handledone (dart:async/stream_pipe.dart:110) #35 _handledone (dart:async/stream_pipe.dart:178) #36 _rootrun (dart:async/zone.dart:888) #37 _customzone.run (dart:async/zone.dart:793) #38 _customzone.runguarded (dart:async/zone.dart:701) #39 _bufferingstreamsubscription._senddone.senddone (dart:async/stream_impl.dart:390) #40 _bufferingstreamsubscription._senddone (dart:async/stream_impl.dart:399) #41 _delayeddone.perform (dart:async/stream_impl.dart:614) #42 _streamimplevents.handlenext (dart:async/stream_impl.dart:711) #43 _pendingevents.schedule. (dart:async/stream_impl.dart:671) #44 _rootrun (dart:async/zone.dart:888) #45 _customzone.run (dart:async/zone.dart:793) #46 _customzone.runguarded (dart:async/zone.dart:701) #47 _customzone.bindcallback. (dart:async/zone.dart:726) #48 _rootrun (dart:async/zone.dart:892) #49 _customzone.run (dart:async/zone.dart:793) #50 _customzone.runguarded (dart:async/zone.dart:701) #51 _customzone.bindcallback. (dart:async/zone.dart:726) #52 _asyncruncallbackloop (dart:async/schedule_microtask.dart:41) #53 _asyncruncallback (dart:async/schedule_microtask.dart:48) #54 _runpendingimmediatecallback (dart:isolate-patch/isolate_patch.dart:84) #55 _rawreceiveportimpl._handlemessage (dart:isolate-patch/isolate_patch.dart:131) ). package:gcloud/src/db/model_db_impl.dart 126:7 fromdatastoreentity dart:core list.foreach package:gcloud/common.dart 58:23 _handlepage dart:isolate _rawreceiveportimpl._handlemessage #28 _rootrun (dart:async/zone.dart:888) #29 _customzone.run (dart:async/zone.dart:793) #30 _customzone.runguarded (dart:async/zone.dart:701) #31 _bufferingstreamsubscription._senddone.senddone (dart:async/stream_impl.dart:390) #32 _bufferingstreamsubscription._senddone (dart:async/stream_impl.dart:399) #33 _bufferingstreamsubscription._close (dart:async/stream_impl.dart:290) #34 _forwardingstream._handledone (dart:async/stream_pipe.dart:110) #35 _handledone (dart:async/stream_pipe.dart:178) #36 _rootrun (dart:async/zone.dart:888) #37 _customzone.run (dart:async/zone.dart:793) #38 _customzone.runguarded (dart:async/zone.dart:701) #39 _bufferingstreamsubscription._senddone.senddone (dart:async/stream_impl.dart:390) #40 _bufferingstreamsubscription._senddone (dart:async/stream_impl.dart:399) #41 _delayeddone.perform (dart:async/stream_impl.dart:614) #42 _streamimplevents.handlenext (dart:async/stream_impl.dart:711) #43 _pendingevents.schedule. (dart:async/stream_impl.dart:671) #44 _rootrun (dart:async/zone.dart:888) #45 _customzone.run (dart:async/zone.dart:793) #46 _customzone.runguarded (dart:async/zone.dart:701) #47 _customzone.bindcallback. (dart:async/zone.dart:726) #48 _rootrun (dart:async/zone.dart:892) #49 _customzone.run (dart:async/zone.dart:793) #50 _customzone.runguarded (dart:async/zone.dart:701) #51 _customzone.bindcallback. (dart:async/zone.dart:726) #52 _asyncruncallbackloop (dart:async/schedule_microtask.dart:41) #53 _asyncruncallback (dart:async/schedule_microtask.dart:48) #54 _runpendingimmediatecallback (dart:isolate-patch/isolate_patch.dart:84) #55 _rawreceiveportimpl._handlemessage (dart:isolate-patch/isolate_patch.dart:131) ). package:gcloud/src/db/model_db_impl.dart 126:7 fromdatastoreentity dart:core list.foreach package:gcloud/common.dart 58:23 _handlepage dart:isolate _rawreceiveportimpl._handlemessage #44 _rootrun (dart:async/zone.dart:888) #45 _customzone.run (dart:async/zone.dart:793) #46 _customzone.runguarded (dart:async/zone.dart:701) #47 _customzone.bindcallback. (dart:async/zone.dart:726) #48 _rootrun (dart:async/zone.dart:892) #49 _customzone.run (dart:async/zone.dart:793) #50 _customzone.runguarded (dart:async/zone.dart:701) #51 _customzone.bindcallback. (dart:async/zone.dart:726) #52 _asyncruncallbackloop (dart:async/schedule_microtask.dart:41) #53 _asyncruncallback (dart:async/schedule_microtask.dart:48) #54 _runpendingimmediatecallback (dart:isolate-patch/isolate_patch.dart:84) #55 _rawreceiveportimpl._handlemessage (dart:isolate-patch/isolate_patch.dart:131) ). package:gcloud/src/db/model_db_impl.dart 126:7 fromdatastoreentity dart:core list.foreach package:gcloud/common.dart 58:23 _handlepage dart:isolate _rawreceiveportimpl._handlemessage #48 _rootrun (dart:async/zone.dart:892) #49 _customzone.run (dart:async/zone.dart:793) #50 _customzone.runguarded (dart:async/zone.dart:701) #51 _customzone.bindcallback. (dart:async/zone.dart:726) #52 _asyncruncallbackloop (dart:async/schedule_microtask.dart:41) #53 _asyncruncallback (dart:async/schedule_microtask.dart:48) #54 _runpendingimmediatecallback (dart:isolate-patch/isolate_patch.dart:84) #55 _rawreceiveportimpl._handlemessage (dart:isolate-patch/isolate_patch.dart:131) ). package:gcloud/src/db/model_db_impl.dart 126:7 fromdatastoreentity dart:core list.foreach package:gcloud/common.dart 58:23 _handlepage dart:isolate _rawreceiveportimpl._handlemessage #52 _asyncruncallbackloop (dart:async/schedule_microtask.dart:41) #53 _asyncruncallback (dart:async/schedule_microtask.dart:48) #54 _runpendingimmediatecallback (dart:isolate-patch/isolate_patch.dart:84) #55 _rawreceiveportimpl._handlemessage (dart:isolate-patch/isolate_patch.dart:131) ). package:gcloud/src/db/model_db_impl.dart 126:7 fromdatastoreentity dart:core list.foreach package:gcloud/common.dart 58:23 _handlepage dart:isolate _rawreceiveportimpl._handlemessage
what
gcloud preview app run app.yaml --clear-datastore
as answered here https://groups.google.com/a/dartlang.org/forum/#!topic/cloud/iyo-wsc__8i ?
Comments
Post a Comment