Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

The null object does not have a method 'toLowerCase' #144

Closed
tmst opened this issue Mar 31, 2015 · 1 comment
Closed

The null object does not have a method 'toLowerCase' #144

tmst opened this issue Mar 31, 2015 · 1 comment

Comments

@tmst
Copy link

tmst commented Mar 31, 2015

When running this script on a discovery document generated by Google cloud tools and published at the appspot.com domain, I get the following error:

NoSuchMethodError: method not found: 'toLowerCase'
Receiver: null
Arguments: []
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#1 ApisPackageGenerator.generateApiPackage (package:discoveryapis_generator/src/apis_package_generator.dart:70:49)
#2 generateApiPackage (package:discoveryapis_generator/discoveryapis_generator.dart:53:49)
#3 generateAllLibraries (package:discoveryapis_generator/discoveryapis_generator.dart:64:28)
#4 main (file:///home/tom/work/dart/dart-sdk/discoveryapis_generator/bin/generate.dart:112:40)
#5 _startIsolate (dart:isolate-patch/isolate_patch.dart:237)
#6 _startMainIsolate. (dart:isolate-patch/isolate_patch.dart:192)
#7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:130)

Note: for some reason, my API's discovery document is only 36 lines, considerable shorter than examples I've seen. The discoveryVersion is 'v1'.

@tmst
Copy link
Author

tmst commented Apr 1, 2015

I just discovered that there are (at least) two different versions of the discovery document for a given API depending on where it is published - the appspot.com domain or localhost, and that I was probably using the wrong (appspot.com) one.

@tmst tmst closed this as completed Apr 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant