Skip to content

Blank browser page after starting local server #130

Open

Description

@macroteck

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: #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

Activity

  1. macroteck commented on Mar 28, 2025

    @macroteck
    Author

    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

  2. manasbajaj commented on Mar 28, 2025

    @manasbajaj
    Collaborator

    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

  3. macroteck commented on Mar 28, 2025

    @macroteck
    Author

    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.
  4. added a commit that references this issue on Apr 1, 2025
  5. self-assigned this
    on Apr 1, 2025
  6. added a commit that references this issue on Apr 2, 2025
  7. zwelz3 commented on Aug 5, 2025

    @zwelz3

    This is closed by #131 now yes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions