oracle / oci-designer-toolkit

OCI designer toolKIT (OKIT) is a set of tools for enabling design, deploy and visualise OCI environments through a graphical web based interface.
Universal Permissive License v1.0
262 stars 122 forks source link

Region Selector fails for PCA-X9 #587

Closed lschubert closed 1 year ago

lschubert commented 1 year ago

Running Release 0.51.0 against PCA-X9

OCI CLI Environment with DEFAULT and pca1 profile (both same content as of now)

Opening okit web app at https://hostname:port/okit/pca

Region Dropdown is not populating but remains in "Retrieving..." (top right corner) when switching from one profile to another.

okit.log shows ...

ERROR in app: Exception on /okit/pca/regions [GET]
...
TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a list.

Fix requested in ~/okit/okitweb/okitPCA.py

...
def pcaRegions():
...
      # instead of 
      response=query.executeQuery()
      # it should be 
      response=jsonToFormattedString(query.executeQuery())
...

I validated that fix in a local environment.

lschubert commented 1 year ago

Seems to be similar to https://github.com/oracle/oci-designer-toolkit/issues/575 which was closed without a fix

lubovano commented 1 year ago

I can confirm that proposed fix solves #575 as well.

toxophilist commented 1 year ago

Pull request merged