How to fix "cannot get property 'info' on null object' when importing swagger
Hi,
When trying to create my first project by importing from my swagger (Apoen API 2.0) spec, it fails with "java.lang.NullPointerException: cannot get property 'info' on null object".
I don't really want to share my API spec - is there anywhere I get see more detailed info on what's upsetting it?
Project -> Import Swagger/OpenAPI definition
...browse to file, select .yaml file, click OK and get this:
ReadyAPI 2.2.0
© SmartBear Inc. 2007-2018
http://www.smartbear.com
Build Date: 20180202-1457
cfadb2503b0140bf76b285753b58766e11a09b3d
Information about 3rd party libraries
Thanks again - now you've put me on to the Open Source version I'll look into that!
By the way, (and to record it here for others searching for the same problem), the issue was to do with CORS which I had set up correctly on the AWS S3 service I was using to serve the .yaml file but an extension in my browser (unfortunately I have not been able to determine which one) was somehow blocking the Origin header and so the
Access-Control-Allow-Origin header was not being returned.
In turn, the browser disallowed loading the resource.