Fetching resource list, Please wait

669 views
Skip to first unread message

Andy Philpotts

unread,
Oct 19, 2017, 12:14:32 PM10/19/17
to Swagger
Running on Windows, in Visual Studio, using the nuget SwashBuckle 5.6.0

When I visit the swagger UI I see the main window, but the only content is this message

    "fetching resource list: http://localhost:53649/swagger/docs/v1; Please wait."

The javascript console says "Unable to get property 'parameters' of undefined or null reference" swagger-ui-min-js (8,1384)

The URL mentioned does have data that looks good, so where to I go next to diagnose this?

{
    "swagger": "2.0",
    "info": {
        "version": "v1",
        "title": "Logical Ink Web API",
        "description": null,
        "termsOfService": null,
        "contact": null,
        "license": null,
        "vendorExtensions": {}
    },
    "host": "localhost:53649",
    "basePath": null,
    "schemes": ["http"],
    "consumes": null,
    "produces": null,
    "paths": {
        "/api/ApplicationInstance/{id}": {
            "$ref": null,
            "get": {
                "tags": ["ApplicationInstance"],
                "summary": "Get an application (smart-set) by id, include it's forms and templates as well as\r\nany instances that used the particular visit id",
                "description": null,
                "externalDocs": null,
                "operationId": "ApplicationInstance_Get",
                "consumes": [],
                "produces": ["application/json", "text/json"],
                "parameters": [{
                    "$ref": null,
                    "name": "id",

Ron Ratovsky

unread,
Oct 19, 2017, 2:24:19 PM10/19/17
to swagger-sw...@googlegroups.com

That doesn’t look good at all. `null` is not a valid value, and that’s a partial JSON.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andy Philpotts

unread,
Oct 19, 2017, 2:42:34 PM10/19/17
to Swagger
I'm sorry, I intentionally posted a partial JSON, as it is very long, it is well formed, I attached the file

null is valid in some contexts, and I see it used in places were there are no parameters

Also, as a comparison, I created an almost empty toy project, and Swagger worked just fine there, so it is something with my Web API I suspect

I just need guidance on how to dig further, where is the JSON

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

docsv1.json

Ron Ratovsky

unread,
Oct 19, 2017, 2:45:42 PM10/19/17
to swagger-sw...@googlegroups.com

Actually no. The only place `null` is a valid value is as a value of extension. Having it anywhere else in the definition is invalid and will break tooling.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--

You received this message because you are subscribed to the Google Groups "Swagger" group.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Andy Philpotts

unread,
Oct 19, 2017, 3:02:55 PM10/19/17
to Swagger
Wow, so I have to look at the source of that, I see a lot of this sort of thing: OK, so that begs a question, where do I look now...

            "put": null,
            "post": null,
            "delete": null,
            "options": null,
            "head": null,
            "patch": null,
            "parameters": null,
            "vendorExtensions": {}

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

Ron Ratovsky

unread,
Oct 19, 2017, 3:12:50 PM10/19/17
to swagger-sw...@googlegroups.com

That’s a question to Swashbuckle…

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages