SysML-v2-API-Services icon indicating copy to clipboard operation
SysML-v2-API-Services copied to clipboard

Blank browser page after starting local server

Open macroteck opened this issue 7 months ago • 4 comments
trafficstars

Hi, I followed the "Scenario 2" instructions here: https://github.com/Systems-Modeling/SysML-v2-API-Services (and got one fix, which worked, from here: https://github.com/Systems-Modeling/SysML-v2-API-Services/issues/118) to get SysML v2 REST/HTTP API and Services running locally on my machine with: (MacOSX / Apple M3 Pro /macOS Sonoma 14.1.1).

I check the PostgreSQL database, not the docker version, and I can see the tables all got created. I randomly checked to see if any data was in them, none. I am assuming this is norm and I will need to add data. Learning this tool, so that more than likely is beyond installation.

ISSUE: When I go to the http://localhost:9000/docs/ page, only a blank screen is displayed.

OBSERVATION:

  1. When I go to http://localhost:9000/, I see the following::

         Welcome to SysML 2.0 REST API implementation!
         Project Creation Service and Project Navigation services are working.
    
     Based on the instructions, at this URL: http://localhost:9000/docs/, I should see a Swagger page (as shown in this image: https://gist.githubusercontent.com/manasbajaj/0635b32fcf42a75eeca79744af953732/raw/0f73c2f3c8464bc36cb9341516bf9bdfb2342163/SysML-v2-REST-HTTP-API-Swagger-Doc.png)
    
  2. At the end of the "sbt run", I get the follow, which seem ok [info] p.a.h.EnabledFilters - Enabled Filters (see https://www.playframework.com/documentation/latest/Filters):

    play.filters.headers.SecurityHeadersFilter play.filters.hosts.AllowedHostsFilter play.filters.cors.CORSFilter

[info] play.api.Play - Application started (Dev) (no global state)

Can anyone please provide some guidance on what might be the issue (link to fix, actual fix, or any information that can help me resolve this)

Thanks Rich

macroteck avatar Mar 28 '25 15:03 macroteck

Additionally:

So I could make some progress on my evaluation, I tried to access the SysML-v2-API-Services via the SST link, https://sysml2-sst.intercax.com:9000/docs/, and got the following error:

This site can’t provide a secure connection sysml2-sst.intercax.com sent an invalid response.

ERR_SSL_PROTOCOL_ERROR

I am not sure is that is the link, but I googled it since i was not listed in the doc found here: https://github.com/Systems-Modeling/SysML-v2-API-Services. Is this URL incorrect? Can you provide the correct URL, please.

Thanks Rich

macroteck avatar Mar 28 '25 16:03 macroteck

Hello @macroteck

We are noticing this issue as well and it is due to the fact that Rapid docs capability that renders the OpenAPI specification (JSON) is using an external CDN that seems to be unreachable this week, resulting in this issue. This is the default CDN used by Rapid docs. But we have found an interim workaround and will be providing a fix on the develop branch by Mon.

This is also the reason why you see a blank page on localhost.

Yes, your URL is correct and http://sysml2-sst.intercax.com:9000/docs/ should work but it is not due to the issue above.

Note that this is ONLY an issue in rendering the API docs. The actual API will work, so a GET request to http://sysml2-sst.intercax.com/projects endpoint will work fine.

Alternatively, can you try http://sysml2.intercax.com:9000/docs/ on Chrome with Incognito mode? Continue to site when prompted. The SSL certs are not installed on the site yet and hence you have to open in Incognito mode. Chrome does not allow opening non https sites anymore. We are planning to deploy certs on the site but that requires coordinate with other OMG members using the server.

Best Regards Manas

manasbajaj avatar Mar 28 '25 17:03 manasbajaj

Manas, Thank you for the reply.

  1. I will standby until the issue that affects the scenario 2, running it locally, is resolved. There is a specific reason I need to get this working. Good to know you are working on the issue.
  2. Yes, when I try http://sysml2.intercax.com:9000/docs/ , I am able to get to the Systems Modeling API and Services 1.0. page. I will use this in the mean time.

macroteck avatar Mar 28 '25 18:03 macroteck

This is closed by #131 now yes?

zwelz3 avatar Aug 05 '25 23:08 zwelz3